From 223924a7a1eff78ad57a575fc98c163664a44f7a Mon Sep 17 00:00:00 2001 From: Steve Gravrock Date: Sat, 21 Sep 2019 11:37:16 -0700 Subject: [PATCH] Fixed matchersUtil.contains test to fail correctly --- spec/core/matchers/matchersUtilSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/core/matchers/matchersUtilSpec.js b/spec/core/matchers/matchersUtilSpec.js index 9dd42ce5..570f8f20 100644 --- a/spec/core/matchers/matchersUtilSpec.js +++ b/spec/core/matchers/matchersUtilSpec.js @@ -164,7 +164,7 @@ describe("matchersUtil", function() { expect(jasmineUnderTest.matchersUtil.equals(a,b)).toBe(true); }); - + it("passes for equivalent Promises (GitHub issue #1314)", function() { if (typeof Promise === 'undefined') { return; } @@ -620,7 +620,7 @@ describe("matchersUtil", function() { it("uses custom equality testers if passed in and actual is an Array", function() { var customTester = function(a, b) {return true;}; - expect(jasmineUnderTest.matchersUtil.contains([1, 2], 2, [customTester])).toBe(true); + expect(jasmineUnderTest.matchersUtil.contains([1, 2], 3, [customTester])).toBe(true); }); it("fails when actual is undefined", function() {