Skip to content

Commit

Permalink
added test
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKristoffersson committed Dec 7, 2023
1 parent 72a0d64 commit 1fa9eb1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions packages/mui-material/src/TablePagination/TablePagination.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -706,4 +706,28 @@ describe('<TablePagination />', () => {

expect(combobox.parentElement).not.to.have.attribute('variant');
});

it('should not raise a warning for hiddenLabel when the variant is filled', () => {
expect(() => {
PropTypes.checkPropTypes(
TablePagination.propTypes,
{
// Other required props
count: 10,
page: 0,
rowsPerPage: 10,
onPageChange: () => {},
// Additional props for the test
slotProps: {
select: {
variant: 'filled',
hiddenLabel: true,
},
},
},
'prop',
'MockedTablePagination',
);
}).not.toErrorDev();
});
});

0 comments on commit 1fa9eb1

Please sign in to comment.