Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 3cbd88c

Browse files
Fix ThreadView tests not using thread flag (#9547)
Fixes tests failing from changes made by matrix-org/matrix-js-sdk#2856
1 parent 36a574a commit 3cbd88c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/Notifier-test.ts

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ describe("Notifier", () => {
8181
decryptEventIfNeeded: jest.fn(),
8282
getRoom: jest.fn(),
8383
getPushActionsForEvent: jest.fn(),
84+
supportsExperimentalThreads: jest.fn().mockReturnValue(false),
8485
});
8586

8687
mockClient.pushRules = {

test/components/structures/ThreadView-test.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ describe("ThreadView", () => {
108108
stubClient();
109109
mockPlatformPeg();
110110
mockClient = mocked(MatrixClientPeg.get());
111+
jest.spyOn(mockClient, "supportsExperimentalThreads").mockReturnValue(true);
111112

112113
room = new Room(ROOM_ID, mockClient, mockClient.getUserId() ?? "", {
113114
pendingEventOrdering: PendingEventOrdering.Detached,

0 commit comments

Comments
 (0)