mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 07:11:03 +00:00
fixed unit tests
This commit is contained in:
parent
cf7ed3f76e
commit
400ddf36ed
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ describe('ContactManager', function() {
|
|||
})
|
||||
|
||||
return it('should call the callback with an error', function() {
|
||||
return this.callback.calledWith(new Error()).should.equal(true)
|
||||
return this.callback.calledWith(sinon.match(Error)).should.equal(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
@ -136,7 +136,7 @@ describe('ContactManager', function() {
|
|||
})
|
||||
|
||||
return it('should call the callback with an error', function() {
|
||||
return this.callback.calledWith(new Error()).should.equal(true)
|
||||
return this.callback.calledWith(sinon.match(Error)).should.equal(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue