Skip to content

Commit

Permalink
🚨 Fix Firebase.Collection#fetch test
Browse files Browse the repository at this point in the history
Fix Backbone.Firebase.Collection#fetch test to properly check if a
collection was successfully synced with Firebase backend.

Requires: googlearchive#156
  • Loading branch information
jpventura committed Nov 2, 2016
1 parent b430d16 commit a0cc4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/specs/collection_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ describe('Backbone.Firebase.Collection', function() {
collection.fetch();
collection.on('sync', function() {
successCalled = true;
expect(successCalled).to.be.ok;
});
collection.firebase.flush();
expect(successCalled).to.be.ok;
});

});
Expand Down

0 comments on commit a0cc4da

Please sign in to comment.