mirror of
https://github.com/vector-im/element-call.git
synced 2026-05-10 10:24:44 +00:00
fix tests
This commit is contained in:
@@ -109,6 +109,9 @@ function createInCallView(): RenderResult & {
|
||||
getDeviceId: () => localRtcMember.deviceId,
|
||||
getRoom: (rId) => (rId === roomId ? room : null),
|
||||
getDomain: () => "example.com",
|
||||
getAccessToken: () => "mock-access-token",
|
||||
baseUrl: "https://matrix.example.com",
|
||||
getOpenIdToken: vi.fn(),
|
||||
} as Partial<MatrixClient> as MatrixClient;
|
||||
const room = mockMatrixRoom({
|
||||
relations: {
|
||||
|
||||
@@ -63,6 +63,9 @@ export function getBasicRTCSession(
|
||||
getDeviceId: () => localRtcMember.deviceId,
|
||||
getSyncState: () => SyncState.Syncing,
|
||||
getDomain: () => null,
|
||||
getAccessToken: () => "mock-access-token",
|
||||
baseUrl: "https://matrix.example.com",
|
||||
getOpenIdToken: vitest.fn(),
|
||||
sendEvent: vitest.fn().mockResolvedValue({ event_id: "$fake:event" }),
|
||||
redactEvent: vitest.fn().mockResolvedValue({ event_id: "$fake:event" }),
|
||||
decryptEventIfNeeded: vitest.fn().mockResolvedValue(undefined),
|
||||
|
||||
Reference in New Issue
Block a user