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 () => {
|
it("opens the notifications panel", async () => {
|
||||||
|
jest.spyOn(SettingsStore, "getValue").mockImplementation((name: string) => {
|
||||||
|
if (name === "feature_notifications") return true;
|
||||||
|
});
|
||||||
|
|
||||||
const { container } = render(
|
const { container } = render(
|
||||||
<RoomHeader room={room} />,
|
<RoomHeader room={room} />,
|
||||||
withClientContextRenderOptions(MatrixClientPeg.get()!),
|
withClientContextRenderOptions(MatrixClientPeg.get()!),
|
||||||
|
|
|
@ -62,13 +62,6 @@ exports[`RoomHeader does not show the face pile for DMs 1`] = `
|
||||||
>
|
>
|
||||||
<div />
|
<div />
|
||||||
</button>
|
</button>
|
||||||
<button
|
|
||||||
class="_icon-button_yvmcf_17"
|
|
||||||
style="--cpd-icon-button-size: 32px;"
|
|
||||||
title="Notifications"
|
|
||||||
>
|
|
||||||
<div />
|
|
||||||
</button>
|
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
</DocumentFragment>
|
</DocumentFragment>
|
||||||
|
|
Loading…
Reference in a new issue