Skip to content
This repository was archived by the owner on Mar 17, 2025. It is now read-only.

Commit 2a8cdca

Browse files
author
jwngr
committed
Worked around issue with Jasmine's new array equality check
1 parent 57ef116 commit 2a8cdca

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"grunt-notify": "^0.4.1",
4848
"grunt-protractor-runner": "^1.2.1",
4949
"grunt-shell-spawn": "^0.3.1",
50-
"jasmine-core": "^2.1.3",
50+
"jasmine-core": "^2.2.0",
5151
"jasmine-spec-reporter": "^2.1.0",
5252
"karma": "~0.12.31",
5353
"karma-chrome-launcher": "^0.1.7",

tests/unit/FirebaseArray.spec.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,10 @@ describe('$FirebaseArray', function () {
486486
expect(len).toBeGreaterThan(0);
487487
var copy = testutils.deepCopyObject(arr);
488488
arr.$$updated(testutils.snap('foo', 'notarealkey'));
489-
expect(arr).toEqual(copy);
489+
expect(len).toEqual(copy.length);
490+
for (var i = 0; i < len; i++) {
491+
expect(arr[i]).toEqual(copy[i]);
492+
}
490493
});
491494

492495
it('should preserve ids', function() {

0 commit comments

Comments
 (0)