2016-11-23 16:37:58 +08:00
|
|
|
import { render } from 'enzyme';
|
|
|
|
import { renderToJson } from 'enzyme-to-json';
|
2016-11-22 13:43:53 +08:00
|
|
|
import demoTest from '../shared/demoTest';
|
2016-11-23 16:37:58 +08:00
|
|
|
import routerDemo from '../../components/breadcrumb/demo/router.md';
|
2016-11-22 13:43:53 +08:00
|
|
|
|
2016-11-23 16:14:57 +08:00
|
|
|
demoTest('breadcrumb', { skip: [ 'router.md' ] });
|
2016-11-23 16:37:58 +08:00
|
|
|
|
|
|
|
const testMethod = typeof window !== 'undefined' ? test : test.skip;
|
|
|
|
testMethod('renders ./components/breadcrumb/demo/router.md correctly', () => {
|
|
|
|
const wrapper = render(routerDemo);
|
|
|
|
expect(renderToJson(wrapper)).toMatchSnapshot();
|
|
|
|
});
|