diff options
| author | Shyam Seshadri | 2010-08-12 02:42:04 +0800 |
|---|---|---|
| committer | Shyam Seshadri | 2010-08-12 02:45:22 +0800 |
| commit | cf331050112ee973b9e8186dc4741028ca22f024 (patch) | |
| tree | f8b66bc339ccf34700c4bcd73d233de0d4614e42 /src | |
| parent | 04e92a875344fb675f27355a8bae7a22d0a6ae63 (diff) | |
| download | angular.js-cf331050112ee973b9e8186dc4741028ca22f024.tar.bz2 | |
Fix toEqual matcher to use angular.equals instead of simple == comparison, which breaks down for arrays and objects
Diffstat (limited to 'src')
| -rw-r--r-- | src/scenario/Matcher.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scenario/Matcher.js b/src/scenario/Matcher.js index 62f094c8..a9c86571 100644 --- a/src/scenario/Matcher.js +++ b/src/scenario/Matcher.js @@ -18,4 +18,4 @@ Matcher.addMatcher = function(name, matcher) { }; }; -Matcher.addMatcher('toEqual', function(a,b) { return a == b; }); +Matcher.addMatcher('toEqual', angular.equals); |
