mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-23 11:37:38 +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:
committed by
Shyam Seshadri
parent
04e92a8753
commit
cf33105011
@@ -35,22 +35,25 @@ function childNode(element, index) {
|
||||
}
|
||||
|
||||
extend(angular, {
|
||||
'bind': bind,
|
||||
'compile': compile,
|
||||
'copy': copy,
|
||||
'element': jqLite,
|
||||
'compile': compile,
|
||||
'scope': createScope,
|
||||
'copy': copy,
|
||||
'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
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user