[tests][iid] added iid() tests -> 100% coverage

This commit is contained in:
Salakar 2018-04-11 02:45:47 +01:00
parent 2382347a43
commit 042b4bd736
1 changed files with 22 additions and 0 deletions

22
bridge/e2e/iid/iid.e2e.js Normal file
View File

@ -0,0 +1,22 @@
describe('iid()', () => {
describe('get()', () => {
it('returns instance id string', async () => {
const iid = await firebase.iid().get();
iid.should.be.a.String();
});
});
describe('delete()', () => {
it('deletes the current instance id', async () => {
const iidBefore = await firebase.iid().get();
iidBefore.should.be.a.String();
await firebase.iid().delete();
const iidAfter = await firebase.iid().get();
iidAfter.should.be.a.String();
iidBefore.should.not.equal(iidAfter);
});
});
});