From 5c47142dab202a48aec6ef1369c7e0ab079107e4 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Wed, 22 Mar 2023 16:22:19 -0400 Subject: [PATCH] Prep for matrix-js-sdk supporting intentional mentions. (#10431) Add a method to the fake MatrixClient used in tests for compatibility with changes in matrix-org/matrix-js-sdk#3092. This stops the downstream tests from failing on that PR. --- 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 ad00f79f05..35823af88c 100644 --- a/test/test-utils/test-utils.ts +++ b/test/test-utils/test-utils.ts @@ -176,6 +176,7 @@ export function createTestClient(): MatrixClient { isUserIgnored: jest.fn().mockReturnValue(false), getCapabilities: jest.fn().mockResolvedValue({}), supportsThreads: () => false, + supportsIntentionalMentions: () => false, getRoomUpgradeHistory: jest.fn().mockReturnValue([]), getOpenIdToken: jest.fn().mockResolvedValue(undefined), registerWithIdentityServer: jest.fn().mockResolvedValue({}),