Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Remove outdated test
Browse files Browse the repository at this point in the history
  • Loading branch information
MidhunSureshR committed Jul 22, 2024
1 parent 171adaf commit da1b493
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions test/components/structures/RoomView-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -524,35 +524,6 @@ describe("RoomView", () => {
expect(asFragment()).toMatchSnapshot();
});

describe("Peeking", () => {
beforeEach(() => {
// Make room peekable
room.currentState.setStateEvents([
new MatrixEvent({
type: "m.room.history_visibility",
state_key: "",
content: {
history_visibility: "world_readable",
},
room_id: room.roomId,
}),
]);
});

it("should show forget room button for non-guests", async () => {
mocked(cli.isGuest).mockReturnValue(false);
await mountRoomView();

expect(screen.getByLabelText("Forget room")).toBeInTheDocument();
});

it("should not show forget room button for guests", async () => {
mocked(cli.isGuest).mockReturnValue(true);
await mountRoomView();
expect(screen.queryByLabelText("Forget room")).not.toBeInTheDocument();
});
});

describe("knock rooms", () => {
const client = createTestClient();

Expand Down

0 comments on commit da1b493

Please sign in to comment.