Revert "fix(platform-browser): support customEqualityTesters when overriding Jasmine toEqual"

This reverts commit f580ffab4f.

Reason: broke a few existing tests.
This commit is contained in:
Alex Rickabaugh 2017-10-05 13:19:39 -07:00
parent 01f711281c
commit b804d4bde5
1 changed files with 2 additions and 3 deletions

View File

@ -114,11 +114,10 @@ export const expect: (actual: any) => NgMatchers = <any>_global.expect;
_global.beforeEach(function() { _global.beforeEach(function() {
jasmine.addMatchers({ jasmine.addMatchers({
// Custom handler for Map as Jasmine does not support it yet // Custom handler for Map as Jasmine does not support it yet
toEqual: function( toEqual: function(util) {
util: jasmine.MatchersUtil, customEqualityTesters: jasmine.CustomEqualityTester[]) {
return { return {
compare: function(actual: any, expected: any) { compare: function(actual: any, expected: any) {
return {pass: util.equals(actual, expected, [compareMap, ...customEqualityTesters])}; return {pass: util.equals(actual, expected, [compareMap])};
} }
}; };