From 6371a4abd1f3e7318b96e4dc40704e5607b133c5 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 13 Jan 2021 16:02:35 +0000 Subject: [PATCH] Fix tests Remove stray file extensions in includes and update shared instance name. --- test/components/views/rooms/RoomList-test.js | 4 ++-- test/utils/ShieldUtils-test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/components/views/rooms/RoomList-test.js b/test/components/views/rooms/RoomList-test.js index c2cad431f4..1c2a1c9992 100644 --- a/test/components/views/rooms/RoomList-test.js +++ b/test/components/views/rooms/RoomList-test.js @@ -9,8 +9,8 @@ import sdk from '../../../skinned-sdk'; import { DragDropContext } from 'react-beautiful-dnd'; import dis from '../../../../src/dispatcher/dispatcher'; -import DMRoomMap from '../../../../src/utils/DMRoomMap.js'; -import GroupStore from '../../../../src/stores/GroupStore.js'; +import DMRoomMap from '../../../../src/utils/DMRoomMap'; +import GroupStore from '../../../../src/stores/GroupStore'; import { MatrixClient, Room, RoomMember } from 'matrix-js-sdk'; import {DefaultTagID} from "../../../../src/stores/room-list/models"; diff --git a/test/utils/ShieldUtils-test.js b/test/utils/ShieldUtils-test.js index e4c0c671e3..8e3b19c1c4 100644 --- a/test/utils/ShieldUtils-test.js +++ b/test/utils/ShieldUtils-test.js @@ -42,7 +42,7 @@ describe("mkClient self-test", function() { describe("shieldStatusForMembership self-trust behaviour", function() { beforeAll(() => { - DMRoomMap._sharedInstance = { + DMRoomMap.sharedInstance = { getUserIdForRoomId: (roomId) => roomId === "DM" ? "@any:h" : null, }; });