Fix failing unit test

This commit is contained in:
Maksym Kobieliev
2020-04-14 22:01:56 +03:00
parent ec9904bf52
commit e94e6c5b75

View File

@@ -14,11 +14,10 @@ describe("toHaveBeenCalledOnceWith", function () {
});
it("passes through the custom equality testers", function () {
var util = {
contains: jasmine.createSpy('delegated-contains').and.returnValue(false),
equals: jasmineUnderTest.matchersUtil.equals
},
customEqualityTesters = [function () { return true; }],
var util = jasmineUnderTest.matchersUtil;
spyOn(util, 'contains').and.returnValue(false);
var customEqualityTesters = [function () { return true; }],
matcher = jasmineUnderTest.matchers.toHaveBeenCalledOnceWith(util, customEqualityTesters),
calledSpy = new jasmineUnderTest.Spy('called-spy');