diff --git a/packages/mui-joy/src/Avatar/Avatar.test.js b/packages/mui-joy/src/Avatar/Avatar.test.js index 189eb85736b8e2..fd78a9351bf715 100644 --- a/packages/mui-joy/src/Avatar/Avatar.test.js +++ b/packages/mui-joy/src/Avatar/Avatar.test.js @@ -10,7 +10,7 @@ import PersonIcon from '../internal/svg-icons/Person'; describe('', () => { const { render } = createRenderer(); - describeConformance(, () => ({ + describeConformance(, () => ({ classes, inheritComponent: 'div', render, @@ -21,6 +21,10 @@ describe('', () => { testDeepOverrides: { slotName: 'fallback', slotClassName: classes.fallback }, testVariantProps: { variant: 'solid' }, testCustomVariant: true, + slots: { + root: { expectedClassName: classes.root }, + img: { expectedClassName: classes.img }, + }, skip: ['classesRoot', 'componentsProp'], })); @@ -96,9 +100,7 @@ describe('', () => { it('should be able to add more props to the image', () => { const onError = spy(); - const { container } = render( - , - ); + const { container } = render(); const img = container.querySelector('img'); fireEvent.error(img); expect(onError.callCount).to.equal(1); @@ -116,9 +118,7 @@ describe('', () => { it('should be able to add more props to the image', () => { const onError = spy(); - const { container } = render( - , - ); + const { container } = render(); const img = container.querySelector('img'); fireEvent.error(img); expect(onError.callCount).to.equal(1); diff --git a/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.js b/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.js index a72830c1a11ddc..fa2bd4179dbf55 100644 --- a/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.js +++ b/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.js @@ -18,6 +18,9 @@ describe('', () => { testComponentPropWith: 'span', testVariantProps: { variant: 'solid' }, testCustomVariant: true, + slots: { + root: { expectedClassName: classes.root }, + }, skip: ['classesRoot', 'componentsProp'], })); diff --git a/packages/mui-joy/src/Badge/Badge.test.js b/packages/mui-joy/src/Badge/Badge.test.js index 9400d0f0d6e5f2..0841b89083f6c7 100644 --- a/packages/mui-joy/src/Badge/Badge.test.js +++ b/packages/mui-joy/src/Badge/Badge.test.js @@ -22,7 +22,7 @@ describe('', () => { }; describeConformance( - +