Make toEqual pass for arrays with equivalent properties

- Fixes a bug caused by accidental use of a closure variable
This commit is contained in:
Ben Christel
2016-07-18 16:48:00 -07:00
parent 8c9ffe3144
commit 738c10fd43
2 changed files with 11 additions and 1 deletions

View File

@@ -225,7 +225,7 @@ getJasmineRequireObj().matchersUtil = function(j$) {
var extraKeys = [];
for (var i in allKeys) {
if (!allKeys[i].match(/^[0-9]+$/)) {
extraKeys.push(key);
extraKeys.push(allKeys[i]);
}
}