0.1.3 • Published 7 years ago
firebase-mock-v3 v0.1.3
Firebase Mock V3
Firebase Mock V3 extends firebase-mock to provide support for Firebase 3.0.
Setup
Node
$ npm install firebase-mock-v3
var MockFirebase = require('firebase-mock').MockFirebase;
AMD/Browser
$ bower install firebase-mock-v3
<script src="./bower_components/firebase-mock-v3/browser/firebasemock.js"></script>
API
Firebase Mock V3 supports the normal Firebase API plus a small set of utility methods documented fully in the API Reference. Rather than make a server call that is actually asynchronous, MockFirebase allow you to either trigger callbacks synchronously or asynchronously with a specified delay (ref.flush
).