diff --git a/packages/platform-browser/testing/src/matchers.ts b/packages/platform-browser/testing/src/matchers.ts index f43fe4e051..5903cba429 100644 --- a/packages/platform-browser/testing/src/matchers.ts +++ b/packages/platform-browser/testing/src/matchers.ts @@ -114,10 +114,11 @@ 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) { + toEqual: function( + util: jasmine.MatchersUtil, customEqualityTesters: jasmine.CustomEqualityTester[]) { return { compare: function(actual: any, expected: any) { - return {pass: util.equals(actual, expected, [compareMap])}; + return {pass: util.equals(actual, expected, [compareMap, ...customEqualityTesters])}; } };