aboutsummaryrefslogtreecommitdiff
path: root/javascript/test/megolm.spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/test/megolm.spec.js')
-rw-r--r--javascript/test/megolm.spec.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/javascript/test/megolm.spec.js b/javascript/test/megolm.spec.js
index 8f9d24a..9d5eb72 100644
--- a/javascript/test/megolm.spec.js
+++ b/javascript/test/megolm.spec.js
@@ -16,12 +16,15 @@ limitations under the License.
"use strict";
-var Olm = require('../olm');
+var Olm = require('../olm')();
describe("megolm", function() {
var aliceSession, bobSession;
- beforeEach(function() {
+ beforeEach(function(done) {
+ Olm.then(function() {
+ done();
+ });
aliceSession = new Olm.OutboundGroupSession();
bobSession = new Olm.InboundGroupSession();
});