From 8f668807cf85c0a38962e342f7675bf93b05ac63 Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Thu, 5 Oct 2017 13:25:05 -0700 Subject: [PATCH] Revert "fix(platform-browser): support customEqualityTesters when overriding Jasmine toEqual" This reverts commit cc8ae32503e1829d5ff8dd9c888ea4f6bee43c0f. Reason: broke a few existing tests. --- packages/platform-browser/testing/src/matchers.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/platform-browser/testing/src/matchers.ts b/packages/platform-browser/testing/src/matchers.ts index 5903cba429..f43fe4e051 100644 --- a/packages/platform-browser/testing/src/matchers.ts +++ b/packages/platform-browser/testing/src/matchers.ts @@ -114,11 +114,10 @@ export const expect: (actual: any) => NgMatchers = _global.expect; _global.beforeEach(function() { jasmine.addMatchers({ // Custom handler for Map as Jasmine does not support it yet - toEqual: function( - util: jasmine.MatchersUtil, customEqualityTesters: jasmine.CustomEqualityTester[]) { + toEqual: function(util) { return { compare: function(actual: any, expected: any) { - return {pass: util.equals(actual, expected, [compareMap, ...customEqualityTesters])}; + return {pass: util.equals(actual, expected, [compareMap])}; } };