Skip to content

Commit

Permalink
Expose Timestamp in SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
op committed Apr 14, 2019
1 parent 7796810 commit f4ac5ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var MockFirestore = require('./firestore');
var MockFieldValue = require('./firestore-field-value');
var MockMessaging = require('./messaging');
var MockStorage = require('./storage');
var MockTimestamp = require('./timestamp');

var EmailAuthProvider = function() {
this.providerId = EmailAuthProvider.PROVIDER_ID;
Expand Down Expand Up @@ -77,6 +78,7 @@ function MockFirebaseSdk(createDatabase, createAuth, createFirestore, createStor
return createFirestore ? createFirestore() : new MockFirestore();
}
MockFirebaseFirestore.FieldValue = MockFieldValue;
MockFirebaseFirestore.Timestamp = MockTimestamp;

function MockFirebaseStorage() {
return createStorage ? createStorage() : new MockStorage();
Expand Down

0 comments on commit f4ac5ef

Please sign in to comment.