From 400ddf36ed772e6eea78cd69be7b1a1af9e89334 Mon Sep 17 00:00:00 2001 From: mserranom Date: Mon, 23 Mar 2020 12:57:02 +0100 Subject: [PATCH] fixed unit tests --- services/contacts/test/unit/js/ContactsManagerTests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/contacts/test/unit/js/ContactsManagerTests.js b/services/contacts/test/unit/js/ContactsManagerTests.js index 5fe8286a88..e775cb04fc 100644 --- a/services/contacts/test/unit/js/ContactsManagerTests.js +++ b/services/contacts/test/unit/js/ContactsManagerTests.js @@ -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) }) }) })