Skip to content

Commit

Permalink
[test][Joy] Remove duplicate Avatar test (mui#37201)
Browse files Browse the repository at this point in the history
Signed-off-by: VelociRaptor <77036902+zignis@users.noreply.github.com>
  • Loading branch information
zignis authored and binh1298 committed May 17, 2023
1 parent 401cadb commit ac13dd0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/mui-joy/src/Avatar/Avatar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,6 @@ describe('<Avatar />', () => {
expect(imgs.length).to.equal(1);
expect(avatar).to.have.text('');
});

it('should be able to add more props to the image', () => {
const onError = spy();
const { container } = render(<Avatar src="/fake.png" slotProps={{ img: { onError } }} />);
const img = container.querySelector('img');
fireEvent.error(img);
expect(onError.callCount).to.equal(1);
});
});

describe('font icon avatar', () => {
Expand Down

0 comments on commit ac13dd0

Please sign in to comment.