You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-07 21:23:00 +03:00
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.
This commit is contained in:
@@ -176,6 +176,7 @@ export function createTestClient(): MatrixClient {
|
|||||||
isUserIgnored: jest.fn().mockReturnValue(false),
|
isUserIgnored: jest.fn().mockReturnValue(false),
|
||||||
getCapabilities: jest.fn().mockResolvedValue({}),
|
getCapabilities: jest.fn().mockResolvedValue({}),
|
||||||
supportsThreads: () => false,
|
supportsThreads: () => false,
|
||||||
|
supportsIntentionalMentions: () => false,
|
||||||
getRoomUpgradeHistory: jest.fn().mockReturnValue([]),
|
getRoomUpgradeHistory: jest.fn().mockReturnValue([]),
|
||||||
getOpenIdToken: jest.fn().mockResolvedValue(undefined),
|
getOpenIdToken: jest.fn().mockResolvedValue(undefined),
|
||||||
registerWithIdentityServer: jest.fn().mockResolvedValue({}),
|
registerWithIdentityServer: jest.fn().mockResolvedValue({}),
|
||||||
|
Reference in New Issue
Block a user