Skip to content

Commit b3b038a

Browse files
committed
Expose MockUser class
1 parent e1a01be commit b3b038a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
var MockFirestoreDeltaDocumentSnapshot = require('./firestore-delta-document-snapshot');
44

55
exports.MockAuthentication = require('./auth');
6+
exports.MockUser = require('./user');
67
exports.MockFirebase = require('./firebase');
78
exports.MockFirebaseSdk = require('./sdk');
89
exports.MockFirestore = require('./firestore');

test/unit/user.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ describe('User', function() {
2323
clock.restore();
2424
});
2525

26+
it('should be exported', () => {
27+
const firebaseMock = require('../..');
28+
new firebaseMock.MockUser(this.auth, {});
29+
});
30+
2631
describe('#constructor', function() {
2732

2833
it('should reject ID tokens that expire before the issuance time', () => {

0 commit comments

Comments
 (0)