mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-05-25 05:49:47 +08:00
Fix toEqual matcher to use angular.equals instead of simple == comparison, which breaks down for arrays and objects
This commit is contained in:
@@ -18,4 +18,4 @@ Matcher.addMatcher = function(name, matcher) {
|
||||
};
|
||||
};
|
||||
|
||||
Matcher.addMatcher('toEqual', function(a,b) { return a == b; });
|
||||
Matcher.addMatcher('toEqual', angular.equals);
|
||||
|
||||
Reference in New Issue
Block a user