fixed unit tests

This commit is contained in:
mserranom 2020-03-23 12:57:02 +01:00
parent cf7ed3f76e
commit 400ddf36ed

View file

@ -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)
})
})
})