Skip to content

Commit fa159aa

Browse files
committed
test: remove room list panel snapshot
1 parent 387e69e commit fa159aa

2 files changed

Lines changed: 2 additions & 500 deletions

File tree

test/unit-tests/components/views/rooms/RoomListPanel/RoomListPanel-test.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,13 @@ describe("<RoomListPanel />", () => {
2828
});
2929

3030
it("should render the RoomListSearch component when UIComponent.FilterContainer is at true", () => {
31-
const { asFragment } = renderComponent();
31+
renderComponent();
3232
expect(screen.getByRole("button", { name: "Search Ctrl K" })).toBeInTheDocument();
33-
expect(asFragment()).toMatchSnapshot();
3433
});
3534

3635
it("should not render the RoomListSearch component when UIComponent.FilterContainer is at false", () => {
3736
mocked(shouldShowComponent).mockReturnValue(false);
38-
const { asFragment } = renderComponent();
39-
37+
renderComponent();
4038
expect(screen.queryByRole("button", { name: "Search Ctrl K" })).toBeNull();
41-
expect(asFragment()).toMatchSnapshot();
4239
});
4340
});

0 commit comments

Comments
 (0)