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() {
|
_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])};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue