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

re-enable test

This commit is contained in:
Bruno Windels
2018-09-26 18:00:40 +01:00
parent 2d5eb920b8
commit ba39b64ced

View File

@@ -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;
});
});