mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Switch to mongodb-legacy
GitOrigin-RevId: 11e09528c153de6b7766d18c3c90d94962190371
This commit is contained in:
@@ -5,7 +5,7 @@ const modulePath = path.join(
|
||||
__dirname,
|
||||
'../../../../app/src/Features/InactiveData/InactiveProjectManager'
|
||||
)
|
||||
const { ObjectId, ReadPreference } = require('mongodb')
|
||||
const { ObjectId, ReadPreference } = require('mongodb-legacy')
|
||||
const { expect } = require('chai')
|
||||
|
||||
describe('InactiveProjectManager', function () {
|
||||
@@ -26,7 +26,7 @@ describe('InactiveProjectManager', function () {
|
||||
this.ProjectGetter = { promises: { getProject: sinon.stub() } }
|
||||
this.InactiveProjectManager = SandboxedModule.require(modulePath, {
|
||||
requires: {
|
||||
mongodb: { ObjectId },
|
||||
'mongodb-legacy': { ObjectId },
|
||||
'@overleaf/settings': this.settings,
|
||||
'../Docstore/DocstoreManager': this.DocstoreManager,
|
||||
'../Project/ProjectUpdateHandler': this.ProjectUpdateHandler,
|
||||
|
||||
Reference in New Issue
Block a user