From 84922fc488751b1246c1718cb39d2ef1d56f75eb Mon Sep 17 00:00:00 2001 From: Germain Date: Thu, 31 Aug 2023 21:57:45 +0100 Subject: [PATCH] Update tests --- test/components/views/rooms/RoomHeader-test.tsx | 4 ++++ .../views/rooms/__snapshots__/RoomHeader-test.tsx.snap | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/test/components/views/rooms/RoomHeader-test.tsx b/test/components/views/rooms/RoomHeader-test.tsx index abd0a93639..f6bf6e5200 100644 --- a/test/components/views/rooms/RoomHeader-test.tsx +++ b/test/components/views/rooms/RoomHeader-test.tsx @@ -200,6 +200,10 @@ describe("RoomHeader", () => { }); it("opens the notifications panel", async () => { + jest.spyOn(SettingsStore, "getValue").mockImplementation((name: string) => { + if (name === "feature_notifications") return true; + }); + const { container } = render( , withClientContextRenderOptions(MatrixClientPeg.get()!), diff --git a/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap b/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap index bfcc954454..f1e2b2081f 100644 --- a/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap +++ b/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap @@ -62,13 +62,6 @@ exports[`RoomHeader does not show the face pile for DMs 1`] = ` >
-