Fix toEqual matcher to use angular.equals instead of simple == comparison, which breaks down for arrays and objects

This commit is contained in:
Shyam Seshadri
2010-08-11 11:42:04 -07:00
parent 567341c10f
commit b27fb8a644
4 changed files with 20 additions and 9 deletions

View File

@@ -18,4 +18,4 @@ Matcher.addMatcher = function(name, matcher) {
};
};
Matcher.addMatcher('toEqual', function(a,b) { return a == b; });
Matcher.addMatcher('toEqual', angular.equals);