aboutsummaryrefslogtreecommitdiff
path: root/javascript/test/pk.spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/test/pk.spec.js')
-rw-r--r--javascript/test/pk.spec.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/javascript/test/pk.spec.js b/javascript/test/pk.spec.js
index 0b27470..34f7be5 100644
--- a/javascript/test/pk.spec.js
+++ b/javascript/test/pk.spec.js
@@ -21,9 +21,13 @@ var Olm = require('../olm');
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 () {