Merge pull request #3351 from overleaf/revert-3348-revert-3298-jpa-re-land-mongoose-latest

[misc] re-land: remove mongojs and bump mongoose

GitOrigin-RevId: eba9f80fbd58dbb8aed131fead3ec0b928a555aa
This commit is contained in:
Jakob Ackermann
2020-11-04 03:04:21 +00:00
committed by Copybot
parent e249a2e5be
commit 87634be542
60 changed files with 453 additions and 670 deletions
@@ -53,12 +53,12 @@ describe('SystemMessageManager', function() {
describe('clearMessages', function() {
beforeEach(function() {
this.SystemMessage.remove = sinon.stub().callsArg(1)
this.SystemMessage.deleteMany = sinon.stub().callsArg(1)
return this.SystemMessageManager.clearMessages(this.callback)
})
it('should remove the messages from the database', function() {
return this.SystemMessage.remove.calledWith({}).should.equal(true)
return this.SystemMessage.deleteMany.calledWith({}).should.equal(true)
})
it('should return the callback', function() {