Skip to content

Commit

Permalink
test: update test to call for escape instead of backdrop
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Jun 11, 2024
1 parent 036cffe commit 9c35602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/Dialog/Dialog.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ describe('Dialog', () => {
const backdrop = dialog.parentElement!
await user.click(backdrop)

expect(onClose).toHaveBeenCalledWith('backdrop')
expect(onClose).toHaveBeenCalledWith('escape')
})

it('calls `onClose` when keying "Escape"', async () => {
Expand Down

0 comments on commit 9c35602

Please sign in to comment.