mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
Breadcrumb router demo test
This commit is contained in:
parent
5bd8977d75
commit
0acc7d592c
@ -1,3 +1,12 @@
|
||||
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();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user