Skip to content

Commit

Permalink
feat(app): migrate app module to v9
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyokone committed Nov 16, 2022
1 parent a15db5c commit 9d5d337
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/app/e2e/app.v9.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,5 +292,25 @@ describe('v9', function () {
e.message.should.equal('Unable to delete the default native firebase app instance.');
}
});

it('registerVersion is not supported on react-native', async function () {
const { registerVersion } = modular;

try {
await registerVersion();
} catch (e) {
e.message.should.equal('registerVersion is only supported on Web');
}
});

it('onLog is not supported on react-native', async function () {
const { onLog } = modular;

try {
await onLog(() => {}, {});
} catch (e) {
e.message.should.equal('onLog is only supported on Web');
}
});
});
});

0 comments on commit 9d5d337

Please sign in to comment.