diff --git a/web/olm/olm.test.js b/web/olm/olm.test.js --- a/web/olm/olm.test.js +++ b/web/olm/olm.test.js @@ -6,13 +6,13 @@ 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(); }); });