Skip to content

Commit bc9cb4b

Browse files
committed
remove another test
1 parent 3572f29 commit bc9cb4b

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

packages/mui-material/src/Avatar/Avatar.test.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,6 @@ describe('<Avatar />', () => {
5353
expect(img).to.have.attribute('src', '/fake.png');
5454
});
5555

56-
it('should be able to add more props to the image', () => {
57-
// TODO: remove this test in v7
58-
const onError = spy();
59-
const { container } = render(<Avatar src="/fake.png" imgProps={{ onError }} />);
60-
const img = container.querySelector('img');
61-
fireEvent.error(img);
62-
expect(onError.callCount).to.equal(1);
63-
});
64-
6556
it('should be able to add more props to the img slot', () => {
6657
const onError = spy();
6758
const { container } = render(<Avatar src="/fake.png" slotProps={{ img: { onError } }} />);

0 commit comments

Comments
 (0)