- {room ? (
-
- ) : (
-
- )}
+
{
setCardSpy = jest.spyOn(RightPanelStore.instance, "setCard");
});
- it("renders with no props", () => {
- const { asFragment } = render();
- expect(asFragment()).toMatchSnapshot();
- });
-
it("renders the room header", () => {
const { container } = render();
expect(container).toHaveTextContent(ROOM_ID);
});
- it("display the out-of-band room name", () => {
- const OOB_NAME = "My private room";
- const { container } = render(
- ,
- );
- expect(container).toHaveTextContent(OOB_NAME);
- });
-
it("renders the room topic", async () => {
const TOPIC = "Hello World!";
diff --git a/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap b/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap
deleted file mode 100644
index db5c2033d6f..00000000000
--- a/test/components/views/rooms/__snapshots__/RoomHeader-test.tsx.snap
+++ /dev/null
@@ -1,44 +0,0 @@
-// Jest Snapshot v1, https://goo.gl/fbAQLP
-
-exports[`Roomeader renders with no props 1`] = `
-
-
-
-`;