mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 11:18:14 +08:00
13 lines
486 B
JavaScript
13 lines
486 B
JavaScript
import { render } from 'enzyme';
|
|
import { renderToJson } from 'enzyme-to-json';
|
|
import demoTest from '../shared/demoTest';
|
|
import routerDemo from '../../components/breadcrumb/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(renderToJson(wrapper)).toMatchSnapshot();
|
|
});
|