1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-27 04:21:52 +03:00

Fix LegacyCallHandler-test (#9552)

This commit is contained in:
Michael Weimann
2022-11-08 10:02:07 +01:00
committed by GitHub
parent 3cbd88c280
commit 5fb0f5cc3e

View File

@ -86,6 +86,7 @@ export function createTestClient(): MatrixClient {
getUserId: jest.fn().mockReturnValue("@userId:matrix.org"), getUserId: jest.fn().mockReturnValue("@userId:matrix.org"),
getUser: jest.fn().mockReturnValue({ on: jest.fn() }), getUser: jest.fn().mockReturnValue({ on: jest.fn() }),
getDeviceId: jest.fn().mockReturnValue("ABCDEFGHI"), getDeviceId: jest.fn().mockReturnValue("ABCDEFGHI"),
deviceId: "ABCDEFGHI",
getDevices: jest.fn().mockResolvedValue({ devices: [{ device_id: "ABCDEFGHI" }] }), getDevices: jest.fn().mockResolvedValue({ devices: [{ device_id: "ABCDEFGHI" }] }),
credentials: { userId: "@userId:matrix.org" }, credentials: { userId: "@userId:matrix.org" },