Make Jitsi widgets in video rooms immutable (#8244)
* Make Jitsi widgets in video rooms immutable * Test video room creation
This commit is contained in:
parent
e54eb81626
commit
5fbb25c707
4 changed files with 119 additions and 33 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue