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:
parent
01f711281c
commit
b804d4bde5
|
@ -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])};
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue