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() {
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])};
}
};