You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-06 10:22:45 +03:00
Update tests
This commit is contained in:
@@ -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>
|
||||||
|
Reference in New Issue
Block a user