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 /test/testabilityPatch.js | |
| 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 'test/testabilityPatch.js')
| -rw-r--r-- | test/testabilityPatch.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/testabilityPatch.js b/test/testabilityPatch.js index 5d0df780..e9a88b67 100644 --- a/test/testabilityPatch.js +++ b/test/testabilityPatch.js @@ -35,22 +35,25 @@ function childNode(element, index) { } extend(angular, { - 'bind': bind, + 'element': jqLite, 'compile': compile, + 'scope': createScope, 'copy': copy, - 'element': jqLite, 'extend': extend, + 'equals': equals, 'foreach': foreach, + 'noop':noop, + 'bind':bind, + 'toJson': toJson, + 'fromJson': fromJson, 'identity':identity, 'isUndefined': isUndefined, 'isDefined': isDefined, - 'isObject': isObject, 'isString': isString, 'isFunction': isFunction, + 'isObject': isObject, 'isNumber': isNumber, - 'isArray': isArray, - 'noop':noop, - 'scope': createScope + 'isArray': isArray }); |
