Force cache refresh on config tests

This commit is contained in:
Elliot Hesp 2017-05-23 14:08:24 +01:00
parent 55864b744a
commit 037de1f77b
1 changed files with 10 additions and 1 deletions

View File

@ -16,7 +16,7 @@ function configTests({ before, describe, it, firebase }) {
describe('Config', () => { describe('Config', () => {
it('it should fetch and activate config', () => { it('it should fetch and activate config', () => {
return firebase.native.config().fetch() return firebase.native.config().fetch(0)
.then(() => { .then(() => {
return firebase.native.config().activateFetched(); return firebase.native.config().activateFetched();
}) })
@ -57,6 +57,15 @@ function configTests({ before, describe, it, firebase }) {
return Promise.resolve(); 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();
});
});
}); });
} }