From ba39b64ced72780202d95204f2676d2058871fd8 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 26 Sep 2018 18:00:40 +0100 Subject: [PATCH] re-enable test --- spec/unit/matrix-client.spec.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/unit/matrix-client.spec.js b/spec/unit/matrix-client.spec.js index c37f99582..a59e0af43 100644 --- a/spec/unit/matrix-client.spec.js +++ b/spec/unit/matrix-client.spec.js @@ -215,8 +215,7 @@ describe("MatrixClient", function() { }); it("should return the same sync state as emitted sync events", async function() { - /* const syncingPromise = new Promise((resolve) => { - throw new Error("fail!!"); + const syncingPromise = new Promise((resolve) => { client.on("sync", function syncListener(state) { expect(state).toEqual(client.getSyncState()); if (state === "SYNCING") { @@ -225,9 +224,8 @@ describe("MatrixClient", function() { } }); }); - */ await client.startClient(); - // await syncingPromise; + await syncingPromise; }); });