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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user