Skip to content

Commit

Permalink
[Breadcrumbs] Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Nov 15, 2022
1 parent 3e3c849 commit 246afe7
Showing 1 changed file with 15 additions and 29 deletions.
44 changes: 15 additions & 29 deletions packages/mui-joy/src/Breadcrumbs/Breadcrumbs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,25 @@ import { createRenderer, describeConformance } from 'test/utils';
import { ThemeProvider } from '@mui/joy/styles';
import Breadcrumbs, { breadcrumbsClasses as classes } from '@mui/joy/Breadcrumbs';
import { unstable_capitalize as capitalize } from '@mui/utils';
import Typography from '../Typography';
import Link from '../Link';

describe('<Breadcrumbs />', () => {
const { render } = createRenderer();

describeConformance(
<Breadcrumbs>
{[
<Link key="1" href="/">
1
</Link>,
<Typography key="2">2</Typography>,
]}
</Breadcrumbs>,
() => ({
classes,
inheritComponent: 'nav',
render,
ThemeProvider,
muiName: 'JoyBreadcrumbs',
refInstanceof: window.HTMLElement,
testVariantProps: { variant: 'solid' },
testCustomVariant: true,
slots: {
root: { expectedClassName: classes.root },
ol: { expectedClassName: classes.ol },
li: { expectedClassName: classes.li },
separator: { expectedClassName: classes.separator },
},
skip: ['classesRoot', 'componentsProp'],
}),
);
describeConformance(<Breadcrumbs />, () => ({
classes,
inheritComponent: 'nav',
render,
ThemeProvider,
muiName: 'JoyBreadcrumbs',
refInstanceof: window.HTMLElement,
testVariantProps: { variant: 'solid' },
testCustomVariant: true,
slots: {
root: { expectedClassName: classes.root },
ol: { expectedClassName: classes.ol },
},
skip: ['classesRoot', 'componentsProp'],
}));

describe('prop: size', () => {
it('md by default', () => {
Expand Down

0 comments on commit 246afe7

Please sign in to comment.