Update tests
This commit is contained in:
parent
a5e186b978
commit
84922fc488
2 changed files with 4 additions and 7 deletions
|
@ -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(
|
||||
<RoomHeader room={room} />,
|
||||
withClientContextRenderOptions(MatrixClientPeg.get()!),
|
||||
|
|
|
@ -62,13 +62,6 @@ exports[`RoomHeader does not show the face pile for DMs 1`] = `
|
|||
>
|
||||
<div />
|
||||
</button>
|
||||
<button
|
||||
class="_icon-button_yvmcf_17"
|
||||
style="--cpd-icon-button-size: 32px;"
|
||||
title="Notifications"
|
||||
>
|
||||
<div />
|
||||
</button>
|
||||
</nav>
|
||||
</header>
|
||||
</DocumentFragment>
|
||||
|
|
Loading…
Reference in a new issue