From 5fb0f5cc3e0f19b0c3e7545683bb6fe96ef99b51 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Tue, 8 Nov 2022 10:02:07 +0100 Subject: [PATCH] Fix LegacyCallHandler-test (#9552) --- test/test-utils/test-utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test-utils/test-utils.ts b/test/test-utils/test-utils.ts index ae7f53865b..1a8792b810 100644 --- a/test/test-utils/test-utils.ts +++ b/test/test-utils/test-utils.ts @@ -86,6 +86,7 @@ export function createTestClient(): MatrixClient { getUserId: jest.fn().mockReturnValue("@userId:matrix.org"), getUser: jest.fn().mockReturnValue({ on: jest.fn() }), getDeviceId: jest.fn().mockReturnValue("ABCDEFGHI"), + deviceId: "ABCDEFGHI", getDevices: jest.fn().mockResolvedValue({ devices: [{ device_id: "ABCDEFGHI" }] }), credentials: { userId: "@userId:matrix.org" },