Skip to content

Commit 91b63f6

Browse files
committed
Fixes test unit for $getIndex() to troubleshoot FirebaseExtended#262 and FirebaseExtended#276
1 parent 640abe2 commit 91b63f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/AngularFire.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ describe('AngularFire', function () {
2626
});
2727

2828
it('$getIndex() should work inside loaded function (#262)', function() {
29-
var fb = new Firebase('Mock://').child('data').autoFlush();
29+
var fb = new Firebase('Mock://').child('data');
3030
var called = false;
3131
var ref = $firebase(fb).$on('loaded', function(data) {
3232
called = true;
3333
// this assertion must be inside the callback
3434
expect(ref.$getIndex()).toEqual(Firebase._.keys(data));
3535
});
36-
flush();
36+
flush(fb);
3737
expect(called).toBe(true);
3838
});
3939

0 commit comments

Comments
 (0)