diff options
| author | Shyam Seshadri | 2010-08-11 11:42:04 -0700 | 
|---|---|---|
| committer | Shyam Seshadri | 2010-08-11 11:42:04 -0700 | 
| commit | b27fb8a6448b7c8d59b533fe2df9497170fbaa70 (patch) | |
| tree | e211cd3499813bc144bb94a2206dce958d01863b /src/scenario | |
| parent | 567341c10fc7f74d5333f27514bb2201f1dbee42 (diff) | |
| download | angular.js-b27fb8a6448b7c8d59b533fe2df9497170fbaa70.tar.bz2 | |
Fix toEqual matcher to use angular.equals instead of simple == comparison, which breaks down for arrays and objects
Diffstat (limited to 'src/scenario')
| -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);  | 
