mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-24 04:24:52 +08:00
Force cache refresh on config tests
This commit is contained in:
@@ -16,7 +16,7 @@ function configTests({ before, describe, it, firebase }) {
|
||||
|
||||
describe('Config', () => {
|
||||
it('it should fetch and activate config', () => {
|
||||
return firebase.native.config().fetch()
|
||||
return firebase.native.config().fetch(0)
|
||||
.then(() => {
|
||||
return firebase.native.config().activateFetched();
|
||||
})
|
||||
@@ -57,6 +57,15 @@ function configTests({ before, describe, it, firebase }) {
|
||||
return Promise.resolve();
|
||||
});
|
||||
});
|
||||
|
||||
it('it get all keys as an array', () => {
|
||||
return firebase.native.config().getKeysByPrefix()
|
||||
.then((result) => {
|
||||
console.log(result)
|
||||
result.should.be.Array();
|
||||
return Promise.resolve();
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user