diff options
Diffstat (limited to 'javascript/test/pk.spec.js')
-rw-r--r-- | javascript/test/pk.spec.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/javascript/test/pk.spec.js b/javascript/test/pk.spec.js index aec90ac..007882f 100644 --- a/javascript/test/pk.spec.js +++ b/javascript/test/pk.spec.js @@ -29,9 +29,13 @@ if (!Object.keys) { describe("pk", function() { var encryption, decryption; - beforeEach(function() { - encryption = new Olm.PkEncryption(); - decryption = new Olm.PkDecryption(); + beforeEach(function(done) { + Olm.init().then(function() { + encryption = new Olm.PkEncryption(); + decryption = new Olm.PkDecryption(); + + done(); + }); }); afterEach(function () { |