From b804d4bde5471a55268983ded859b88fafadf7fe Mon Sep 17 00:00:00 2001 From: Alex Rickabaugh Date: Thu, 5 Oct 2017 13:19:39 -0700 Subject: [PATCH] Revert "fix(platform-browser): support customEqualityTesters when overriding Jasmine toEqual" This reverts commit f580ffab4f004b5d3297d693429e0a5d1dd4345a. 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])}; } };