Răsfoiți Sursa

fixed unit tests

mserranom 6 ani în urmă
părinte
comite
400ddf36ed
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      services/contacts/test/unit/js/ContactsManagerTests.js

+ 2 - 2
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)
       })
     })
   })