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

Commit

Permalink
Fix ThreadView tests not using thread flag (#9547)
Browse files Browse the repository at this point in the history
Fixes tests failing from changes made by matrix-org/matrix-js-sdk#2856
  • Loading branch information
MadLittleMods committed Nov 7, 2022
1 parent 36a574a commit 3cbd88c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/Notifier-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ describe("Notifier", () => {
decryptEventIfNeeded: jest.fn(),
getRoom: jest.fn(),
getPushActionsForEvent: jest.fn(),
supportsExperimentalThreads: jest.fn().mockReturnValue(false),
});

mockClient.pushRules = {
Expand Down
1 change: 1 addition & 0 deletions test/components/structures/ThreadView-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3cbd88c

Please sign in to comment.