You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Fix tests
Remove stray file extensions in includes and update shared instance name.
This commit is contained in:
@ -9,8 +9,8 @@ import sdk from '../../../skinned-sdk';
|
|||||||
import { DragDropContext } from 'react-beautiful-dnd';
|
import { DragDropContext } from 'react-beautiful-dnd';
|
||||||
|
|
||||||
import dis from '../../../../src/dispatcher/dispatcher';
|
import dis from '../../../../src/dispatcher/dispatcher';
|
||||||
import DMRoomMap from '../../../../src/utils/DMRoomMap.js';
|
import DMRoomMap from '../../../../src/utils/DMRoomMap';
|
||||||
import GroupStore from '../../../../src/stores/GroupStore.js';
|
import GroupStore from '../../../../src/stores/GroupStore';
|
||||||
|
|
||||||
import { MatrixClient, Room, RoomMember } from 'matrix-js-sdk';
|
import { MatrixClient, Room, RoomMember } from 'matrix-js-sdk';
|
||||||
import {DefaultTagID} from "../../../../src/stores/room-list/models";
|
import {DefaultTagID} from "../../../../src/stores/room-list/models";
|
||||||
|
@ -42,7 +42,7 @@ describe("mkClient self-test", function() {
|
|||||||
|
|
||||||
describe("shieldStatusForMembership self-trust behaviour", function() {
|
describe("shieldStatusForMembership self-trust behaviour", function() {
|
||||||
beforeAll(() => {
|
beforeAll(() => {
|
||||||
DMRoomMap._sharedInstance = {
|
DMRoomMap.sharedInstance = {
|
||||||
getUserIdForRoomId: (roomId) => roomId === "DM" ? "@any:h" : null,
|
getUserIdForRoomId: (roomId) => roomId === "DM" ? "@any:h" : null,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user