From e94e6c5b7525ea705cf369def76985f279567f01 Mon Sep 17 00:00:00 2001 From: Maksym Kobieliev Date: Tue, 14 Apr 2020 22:01:56 +0300 Subject: [PATCH] Fix failing unit test --- spec/core/matchers/toHaveBeenCalledOnceWithSpec.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/spec/core/matchers/toHaveBeenCalledOnceWithSpec.js b/spec/core/matchers/toHaveBeenCalledOnceWithSpec.js index 722a05f1..d5bdab43 100644 --- a/spec/core/matchers/toHaveBeenCalledOnceWithSpec.js +++ b/spec/core/matchers/toHaveBeenCalledOnceWithSpec.js @@ -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');