[tests][config] add platform conditional for setDefaultsFromResource (android expects a double)

This commit is contained in:
Salakar 2018-04-09 20:53:06 +01:00
parent 88f2a7858f
commit 4fd2e74cb2
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,9 @@ describe('config()', () => {
describe('setDefaultsFromResource()', () => {
it('accepts a resource id/name to read defaults from', async () => {
firebase.config().setDefaultsFromResource();
if (device.getPlatform() === 'android')
firebase.config().setDefaultsFromResource(6666);
else firebase.config().setDefaultsFromResource();
// todo add plist/xml on ios/android to test
});