We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3572f29 commit bc9cb4bCopy full SHA for bc9cb4b
1 file changed
packages/mui-material/src/Avatar/Avatar.test.js
@@ -53,15 +53,6 @@ describe('<Avatar />', () => {
53
expect(img).to.have.attribute('src', '/fake.png');
54
});
55
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
-
65
it('should be able to add more props to the img slot', () => {
66
const onError = spy();
67
const { container } = render(<Avatar src="/fake.png" slotProps={{ img: { onError } }} />);
0 commit comments