diff --git a/web/olm/olm.test.js b/web/olm/olm.test.js index 423e6c6ed..f8d57263b 100644 --- a/web/olm/olm.test.js +++ b/web/olm/olm.test.js @@ -1,18 +1,18 @@ // @flow import olm from '@commapp/olm'; describe('olm.Account', () => { it('should construct an empty olm.Account', async () => { await olm.init(); const account = new olm.Account(); - expect(account).not.toBe(undefined); + expect(account).toBeDefined(); }); it('should be able to generate and return prekey', async () => { await olm.init(); const account = new olm.Account(); account.create(); account.generate_prekey(); - expect(account.prekey()).not.toBe(undefined); + expect(account.prekey()).toBeDefined(); }); });