Skip to content

Commit

Permalink
remove obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrookes committed Mar 5, 2020
1 parent 308551e commit 9019f16
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions packages/material-ui-lab/src/Pagination/Pagination.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,3 @@ describe('<Pagination />', () => {
expect(handleChange.callCount).to.equal(1);
});

it('does not attach onChange to the root element', () => {
const handleChange = spy();
const { getByRole } = render(
<Pagination count={3} onChange={handleChange} page={1}>
<input defaultValue={1} type="text" />
</Pagination>,
);

fireEvent.change(getByRole('textbox'), { target: { value: '2' } });

expect(handleChange.callCount).to.equal(0);
});
});

0 comments on commit 9019f16

Please sign in to comment.