[database] getServerTime test

This commit is contained in:
ehesp
2019-06-06 11:40:17 +01:00
parent a2226b595d
commit 5a460fca11

View File

@@ -193,4 +193,11 @@ describe('database()', () => {
firebase.database().setPersistenceCacheSizeBytes(1048576); // 1mb
});
});
describe('getServerTime()', () => {
it('returns a valid date', async () => {
const date = firebase.database().getServerTime();
date.getDate.should.be.Function();
});
});
});