Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 375ffaf

Browse files
committed
Fix tests failing to load skin
We should find a better way to do this, but this works well enough.
1 parent 71b8959 commit 375ffaf

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

test/accessibility/RovingTabIndex-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
import '../skinned-sdk'; // Must be first for skinning to work
1718
import React from "react";
1819
import Adapter from "enzyme-adapter-react-16";
1920
import { configure, mount } from "enzyme";

test/components/views/messages/MKeyVerificationConclusion-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import '../../../skinned-sdk'; // Must be first for skinning to work
12
import React from 'react';
23
import TestRenderer from 'react-test-renderer';
34
import { EventEmitter } from 'events';

test/components/views/rooms/SendMessageComposer-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
import '../../../skinned-sdk'; // Must be first for skinning to work
1718
import Adapter from "enzyme-adapter-react-16";
1819
import { configure, mount } from "enzyme";
1920
import React from "react";

test/createRoom-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import './skinned-sdk'; // Must be first for skinning to work
12
import {_waitForMember, canEncryptToAllUsers} from '../src/createRoom';
23
import {EventEmitter} from 'events';
34

test/editor/deserialize-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
import '../skinned-sdk'; // Must be first for skinning to work
1718
import {parseEvent} from "../../src/editor/deserialize";
1819
import {createPartCreator} from "./mock";
1920

0 commit comments

Comments
 (0)