Skip to content

Commit

Permalink
Remove redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Aug 22, 2023
1 parent 2b2c35b commit 886d3d8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/mui-material/src/TextField/TextField.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,6 @@ describe('<TextField />', () => {
});

describe('event: click', () => {
it('should trigger `onClick` only once', () => {
const handleClick = spy();
const { getByRole } = render(
<TextField variant="outlined" disabled label="Test" onClick={handleClick} />,
);
fireEvent.click(getByRole('textbox'));
expect(handleClick.callCount).to.equal(1);
});

it('registers `onClick` on the root slot', () => {
const handleClick = spy((event) => event.currentTarget);
const { getByTestId, getByRole } = render(
Expand Down

0 comments on commit 886d3d8

Please sign in to comment.