[misc] update the bson package

This commit is contained in:
Jakob Ackermann
2020-09-10 16:40:56 +01:00
parent 0bfe84db47
commit c42561c38a
6 changed files with 11 additions and 19 deletions
@@ -18,8 +18,6 @@ const { expect } = chai
const modulePath = '../../../../app/js/PackManager.js'
const SandboxedModule = require('sandboxed-module')
const { ObjectId } = require('mongojs')
const bson = require('bson')
const BSON = new bson.BSONPure()
const _ = require('underscore')
const tk = require('timekeeper')
@@ -29,7 +27,8 @@ describe('PackManager', function () {
tk.freeze(new Date())
this.PackManager = SandboxedModule.require(modulePath, {
requires: {
'./mongojs': { db: (this.db = {}), ObjectId, BSON },
bson: require('bson'),
'./mongojs': { db: (this.db = {}), ObjectId },
'./LockManager': {},
'./MongoAWS': {},
'logger-sharelatex': { log: sinon.stub(), error: sinon.stub() },