2
0
mirror of synced 2025-01-11 14:44:12 +00:00

[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

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
});