Skip to content

Commit

Permalink
remove esc test
Browse files Browse the repository at this point in the history
  • Loading branch information
toger5 committed Aug 27, 2024
1 parent 035c24a commit 531f1a8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Toast.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,4 @@ describe("Toast", () => {
expect(onDismiss).toHaveBeenCalled();
});
});

test("dismisses when Esc is pressed", async () => {
const user = userEvent.setup();
const onDismiss = vi.fn();
const { debug } = render(
<Toast open={true} onDismiss={onDismiss}>
Hello world!
</Toast>,
);
debug();
await user.keyboard("[Escape]");
expect(onDismiss).toHaveBeenCalled();
});
});

0 comments on commit 531f1a8

Please sign in to comment.