Skip to content

Commit 494bbb1

Browse files
committed
Fix createRoom test
1 parent 3f6228e commit 494bbb1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/unit-tests/createRoom-test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { JitsiCall, ElementCall } from "../../src/models/Call";
1919
import createRoom, { checkUserIsAllowedToChangeEncryption, canEncryptToAllUsers } from "../../src/createRoom";
2020
import SettingsStore from "../../src/settings/SettingsStore";
2121
import { ElementCallEventType, ElementCallMemberEventType } from "../../src/call-types";
22+
import DMRoomMap from "../../src/utils/DMRoomMap";
2223

2324
describe("createRoom", () => {
2425
mockPlatformPeg();
@@ -27,6 +28,7 @@ describe("createRoom", () => {
2728
beforeEach(() => {
2829
stubClient();
2930
client = mocked(MatrixClientPeg.safeGet());
31+
DMRoomMap.makeShared(client);
3032
});
3133

3234
afterEach(() => jest.clearAllMocks());

0 commit comments

Comments
 (0)