diff --git a/spec/test-utils/webrtc.ts b/spec/test-utils/webrtc.ts index d4d50b458d7..41ab56c84dd 100644 --- a/spec/test-utils/webrtc.ts +++ b/spec/test-utils/webrtc.ts @@ -485,6 +485,7 @@ export class MockCallMatrixClient extends TypedEventEmitter().mockReturnValue([]); public getRoom = jest.fn(); + public getFoci = jest.fn(); public supportsThreads(): boolean { return true; diff --git a/spec/unit/embedded.spec.ts b/spec/unit/embedded.spec.ts index caab40ac056..3593769ee89 100644 --- a/spec/unit/embedded.spec.ts +++ b/spec/unit/embedded.spec.ts @@ -51,6 +51,7 @@ class MockWidgetApi extends EventEmitter { public sendToDevice = jest.fn(); public readStateEvents = jest.fn(() => []); public getTurnServers = jest.fn(() => []); + public sendContentLoaded = jest.fn(); public transport = { reply: jest.fn() }; } diff --git a/spec/unit/webrtc/groupCallEventHandler.spec.ts b/spec/unit/webrtc/groupCallEventHandler.spec.ts index c8d65538c60..7fe5cb6a014 100644 --- a/spec/unit/webrtc/groupCallEventHandler.spec.ts +++ b/spec/unit/webrtc/groupCallEventHandler.spec.ts @@ -71,7 +71,8 @@ describe("Group Call Event Handler", function () { getMember: (userId: string) => (userId === FAKE_USER_ID ? mockMember : null), } as unknown as Room; - (mockClient as any).getRoom = jest.fn().mockReturnValue(mockRoom); + mockClient.getRoom = jest.fn().mockReturnValue(mockRoom); + mockClient.getFoci.mockReturnValue([{}]); }); describe("reacts to state changes", () => {