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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}