mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
Datepicker locale demo test
This commit is contained in:
parent
206a327ade
commit
5bd8977d75
@ -1,3 +1,14 @@
|
||||
import { render } from 'enzyme';
|
||||
import { renderToJson } from 'enzyme-to-json';
|
||||
import MockDate from 'mockdate';
|
||||
import demoTest from '../shared/demoTest';
|
||||
|
||||
demoTest('date-picker');
|
||||
demoTest('date-picker', { skip: [ 'locale.md' ] });
|
||||
|
||||
test('renders ./components/date-picker/demo/locale.md correctly', () => {
|
||||
MockDate.set(new Date('2016-11-22').getTime());
|
||||
const LocaleDemo = require('../../components/date-picker/demo/locale');
|
||||
const wrapper = render(LocaleDemo);
|
||||
expect(renderToJson(wrapper)).toMatchSnapshot();
|
||||
MockDate.reset();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user