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 bc9cb4b commit bc59ee6Copy full SHA for bc59ee6
1 file changed
packages/mui-material/src/Avatar/Avatar.test.js
@@ -23,6 +23,9 @@ describe('<Avatar />', () => {
23
root: {
24
expectedClassName: classes.root,
25
},
26
+ img: {
27
+ expectedClassName: classes.img,
28
+ },
29
fallback: {
30
expectedClassName: classes.fallback,
31
@@ -84,14 +87,6 @@ describe('<Avatar />', () => {
84
87
expect(imgs.length).to.equal(1);
85
88
expect(avatar).to.have.text('');
86
89
});
-
- it('should be able to add more props to the img slot', () => {
- 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
- });
95
96
97
describe('font icon avatar', () => {
0 commit comments