Skip to content

Commit

Permalink
Merge branch 'improve-avatar-fallback' of https://github.com/mirus-ua…
Browse files Browse the repository at this point in the history
…/material-ui into improve-avatar-fallback
  • Loading branch information
ZeeshanTamboli committed Jan 28, 2024
2 parents 150afd9 + 593eabc commit f61a104
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/mui-material/src/Avatar/Avatar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,6 @@ describe('<Avatar />', () => {

expect(avatar.firstChild).to.have.attribute('data-testid', 'PersonIcon');
});

it('should throw propTypes error if children is boolean true', () => {
expect(() => {
render(<Avatar>{true}</Avatar>);
}).toErrorDev(
'Warning: Failed prop type: Invalid prop `children` supplied to `ForwardRef(Avatar)`, expected a ReactNode.',
);
});
});

it('should not throw error when ownerState is used in styleOverrides', () => {
Expand Down

0 comments on commit f61a104

Please sign in to comment.