1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Make Jitsi widgets in video rooms immutable (#8244)

* Make Jitsi widgets in video rooms immutable

* Test video room creation
This commit is contained in:
Robin
2022-04-07 07:34:07 -04:00
committed by GitHub
parent e54eb81626
commit 5fbb25c707
4 changed files with 119 additions and 33 deletions

View File

@ -108,6 +108,8 @@ export function createTestClient(): MatrixClient {
getRoomHierarchy: jest.fn().mockReturnValue({
rooms: [],
}),
createRoom: jest.fn().mockResolvedValue({ room_id: "!1:example.org" }),
setPowerLevel: jest.fn().mockResolvedValue(undefined),
// Used by various internal bits we aren't concerned with (yet)
sessionStore: {
@ -135,6 +137,7 @@ export function createTestClient(): MatrixClient {
setPushRuleActions: jest.fn().mockResolvedValue(undefined),
relations: jest.fn().mockRejectedValue(undefined),
isCryptoEnabled: jest.fn().mockReturnValue(false),
downloadKeys: jest.fn(),
fetchRoomEvent: jest.fn(),
} as unknown as MatrixClient;
}