Skip to content

Commit bc59ee6

Browse files
committed
test remove
1 parent bc9cb4b commit bc59ee6

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ describe('<Avatar />', () => {
2323
root: {
2424
expectedClassName: classes.root,
2525
},
26+
img: {
27+
expectedClassName: classes.img,
28+
},
2629
fallback: {
2730
expectedClassName: classes.fallback,
2831
},
@@ -84,14 +87,6 @@ describe('<Avatar />', () => {
8487
expect(imgs.length).to.equal(1);
8588
expect(avatar).to.have.text('');
8689
});
87-
88-
it('should be able to add more props to the img slot', () => {
89-
const onError = spy();
90-
const { container } = render(<Avatar src="/fake.png" slotProps={{ img: { onError } }} />);
91-
const img = container.querySelector('img');
92-
fireEvent.error(img);
93-
expect(onError.callCount).to.equal(1);
94-
});
9590
});
9691

9792
describe('font icon avatar', () => {

0 commit comments

Comments
 (0)