From 409a111b02c548cfe1fa1ecee3104972bfb408cb Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 17 Dec 2019 12:42:47 +0000 Subject: [PATCH] wait additional tick --- package.json | 2 +- test/components/structures/GroupView-test.js | 2 +- test/utils/MegolmExportEncryption-test.js | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a06c8dbcd3..aa2cba73fa 100644 --- a/package.json +++ b/package.json @@ -157,7 +157,7 @@ "webpack-cli": "^3.1.1" }, "jest": { - "testMatch": ["**/*-test.js"], + "testMatch": ["test/**/*-test.js"], "setupTestFrameworkScriptFile": "/test/setupTests.js", "moduleNameMapper": { "\\.(gif|png|svg|ttf|woff2)$": "/__mocks__/imageMock.js" diff --git a/test/components/structures/GroupView-test.js b/test/components/structures/GroupView-test.js index 31e7c26c9a..5f7e000aac 100644 --- a/test/components/structures/GroupView-test.js +++ b/test/components/structures/GroupView-test.js @@ -302,7 +302,7 @@ describe('GroupView', function() { it('should show a RoomDetailList after a successful /summary & /rooms (no rooms returned)', function() { const groupView = ReactTestUtils.findRenderedComponentWithType(root, GroupView); - const prom = waitForUpdate(groupView, 4).then(() => { + const prom = waitForUpdate(groupView, 5).then(() => { const roomDetailList = ReactTestUtils.findRenderedDOMComponentWithClass(root, 'mx_RoomDetailList'); const roomDetailListElement = ReactDOM.findDOMNode(roomDetailList); expect(roomDetailListElement).toBeTruthy(); diff --git a/test/utils/MegolmExportEncryption-test.js b/test/utils/MegolmExportEncryption-test.js index b3a9782ce6..1fd305b0a6 100644 --- a/test/utils/MegolmExportEncryption-test.js +++ b/test/utils/MegolmExportEncryption-test.js @@ -74,7 +74,6 @@ describe('MegolmExportEncryption', function() { let MegolmExportEncryption; beforeAll(() => { - // window.crypto = { subtle: crypto.subtle, getRandomValues }; window.crypto = { subtle: webCrypto.subtle, getRandomValues }; MegolmExportEncryption = require("../../src/utils/MegolmExportEncryption"); });