mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-06-02 19:46:39 +08:00
[database] getServerTime test
This commit is contained in:
@@ -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();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user