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:
Eric Eastwood 2022-11-07 14:21:49 -06:00 committed by GitHub
parent 36a574a14f
commit 3cbd88c280
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -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,