Skip to content

Commit

Permalink
Prep for matrix-js-sdk supporting intentional mentions. (#10431)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
clokep authored and toomore committed Apr 6, 2023
1 parent 3664cdc commit 229d6db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test-utils/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({}),
Expand Down

0 comments on commit 229d6db

Please sign in to comment.