1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-04 05:02:41 +03:00

s/beforeEach/beforeAll/ for Olm.init() and cleanup sas.spec.js

This commit is contained in:
Michael Telatynski
2019-11-25 13:26:10 +00:00
parent 7fb807919c
commit 057303d57c
9 changed files with 30 additions and 17 deletions

View File

@@ -48,12 +48,14 @@ describe("OlmDecryption", function() {
return;
}
beforeAll(function() {
return global.Olm.init();
});
let aliceOlmDevice;
let bobOlmDevice;
beforeEach(async function() {
await global.Olm.init();
aliceOlmDevice = makeOlmDevice();
bobOlmDevice = makeOlmDevice();
await aliceOlmDevice.init();