Fix ThreadView
tests not using thread flag (#9547)
Fixes tests failing from changes made by https://github.com/matrix-org/matrix-js-sdk/pull/2856
This commit is contained in:
parent
36a574a14f
commit
3cbd88c280
2 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,7 @@ describe("Notifier", () => {
|
|||
decryptEventIfNeeded: jest.fn(),
|
||||
getRoom: jest.fn(),
|
||||
getPushActionsForEvent: jest.fn(),
|
||||
supportsExperimentalThreads: jest.fn().mockReturnValue(false),
|
||||
});
|
||||
|
||||
mockClient.pushRules = {
|
||||
|
|
|
@ -108,6 +108,7 @@ describe("ThreadView", () => {
|
|||
stubClient();
|
||||
mockPlatformPeg();
|
||||
mockClient = mocked(MatrixClientPeg.get());
|
||||
jest.spyOn(mockClient, "supportsExperimentalThreads").mockReturnValue(true);
|
||||
|
||||
room = new Room(ROOM_ID, mockClient, mockClient.getUserId() ?? "", {
|
||||
pendingEventOrdering: PendingEventOrdering.Detached,
|
||||
|
|
Loading…
Reference in a new issue