mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-21 21:28:09 +08:00
12 lines
410 B
JavaScript
12 lines
410 B
JavaScript
import { render } from 'enzyme';
|
|
import demoTest from '../../../tests/shared/demoTest';
|
|
import routerDemo from '../demo/router.md';
|
|
|
|
demoTest('breadcrumb', { skip: ['router.md'] });
|
|
|
|
const testMethod = typeof window !== 'undefined' ? test : test.skip;
|
|
testMethod('renders ./components/breadcrumb/demo/router.md correctly', () => {
|
|
const wrapper = render(routerDemo);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|