Merge pull request #15261 from overleaf/csh-issue-11625-mongo-ug-5-chat

Upgrade mongodb module for chat from 4.11.0 to 6.1.0

GitOrigin-RevId: d4ce72b093fd09638a575a14f8945c8cb9ec7f3d
This commit is contained in:
Christopher Hoskin
2023-10-18 08:04:27 +00:00
committed by Copybot
parent 781a827e05
commit b3b02941c7
11 changed files with 123 additions and 116 deletions
@@ -5,14 +5,14 @@ import * as ChatClient from './helpers/ChatClient.js'
import * as ChatApp from './helpers/ChatApp.js'
describe('Resolving a thread', async function () {
const projectId = ObjectId().toString()
const userId = ObjectId().toString()
const projectId = new ObjectId().toString()
const userId = new ObjectId().toString()
before(async function () {
await ChatApp.ensureRunning()
})
describe('with a resolved thread', async function () {
const threadId = ObjectId().toString()
const threadId = new ObjectId().toString()
const content = 'resolved message'
before(async function () {
const { response } = await ChatClient.sendMessage(
@@ -41,7 +41,7 @@ describe('Resolving a thread', async function () {
})
describe('when a thread is not resolved', async function () {
const threadId = ObjectId().toString()
const threadId = new ObjectId().toString()
const content = 'open message'
before(async function () {
const { response } = await ChatClient.sendMessage(
@@ -61,7 +61,7 @@ describe('Resolving a thread', async function () {
})
describe('when a thread is resolved then reopened', async function () {
const threadId = ObjectId().toString()
const threadId = new ObjectId().toString()
const content = 'resolved message'
before(async function () {
const { response } = await ChatClient.sendMessage(