Skip to content

Commit 9316b59

Browse files
committed
Test slots of AspectRatio
1 parent d015bc5 commit 9316b59

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/mui-joy/src/AspectRatio/AspectRatio.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import AspectRatio, { aspectRatioClasses as classes } from '@mui/joy/AspectRatio
88
describe('<AspectRatio />', () => {
99
const { render } = createRenderer();
1010

11-
describeConformance(<AspectRatio />, () => ({
11+
describeConformance(<AspectRatio>16/9</AspectRatio>, () => ({
1212
classes,
1313
inheritComponent: 'div',
1414
render,
@@ -18,6 +18,10 @@ describe('<AspectRatio />', () => {
1818
testComponentPropWith: 'span',
1919
testVariantProps: { variant: 'solid' },
2020
testCustomVariant: true,
21+
slots: {
22+
root: { expectedClassName: classes.root },
23+
content: { expectedClassName: classes.content },
24+
},
2125
skip: ['classesRoot', 'componentsProp'],
2226
}));
2327

0 commit comments

Comments
 (0)