Skip to content

Commit

Permalink
chore: removes unnecessary tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bsunderhus committed Oct 13, 2022
1 parent 41973e7 commit 4021f39
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,20 +95,6 @@ describe('DialogTrigger', () => {
`);
});

it('should not open dialog when aria-disabled is true', () => {
const requestOpenChange = jest.fn();
mockUseDialogContext({ requestOpenChange });

const { getByRole } = render(
<DialogTrigger disableButtonEnhancement>
<button aria-disabled>trigger</button>
</DialogTrigger>,
);
fireEvent.click(getByRole('button'));

expect(requestOpenChange).toBeCalledTimes(0);
});

it('should open dialog when aria-disabled is false', () => {
const requestOpenChange = jest.fn();
mockUseDialogContext({ requestOpenChange });
Expand Down

0 comments on commit 4021f39

Please sign in to comment.