|
|
@@ -19,6 +19,7 @@ const modulePath =
|
|
|
'../../../../app/src/Features/Authorization/AuthorizationManager.js'
|
|
|
const SandboxedModule = require('sandboxed-module')
|
|
|
const Errors = require('../../../../app/src/Features/Errors/Errors.js')
|
|
|
+const { ObjectId } = require('mongodb')
|
|
|
|
|
|
describe('AuthorizationManager', function() {
|
|
|
beforeEach(function() {
|
|
|
@@ -27,6 +28,7 @@ describe('AuthorizationManager', function() {
|
|
|
console: console
|
|
|
},
|
|
|
requires: {
|
|
|
+ mongodb: { ObjectId },
|
|
|
'../Collaborators/CollaboratorsGetter': (this.CollaboratorsGetter = {}),
|
|
|
'../Collaborators/CollaboratorsHandler': (this.CollaboratorsHandler = {}),
|
|
|
'../Project/ProjectGetter': (this.ProjectGetter = {}),
|