You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's correct. Right now you can just mutate MockFirebase.prototype so that ref.onDisconnect is an identity/noop. Otherwise online/offline support is on my list.
So, for example, my test units have some items like this (which I use to mock the new 2.0 methods):
var _ = require('lodash');
// _.noop is essentially just an empty function
_.extend(MockFirebase.prototype, {
onDisconnect: _.noop,
authWithOAuthPassword: _.noop,
limitToFirst: jasmine.createSpy('limitToFirst'),
// and so on...
});
Looking at firebase.js and mockfirebase.js I see that the onDisconnect method is not implemented.
This is causing our test to fail.
See firebase onDisconnect:
The text was updated successfully, but these errors were encountered: