mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
test: add test case for calendar locale prop
This commit is contained in:
parent
e03a4e166b
commit
cb24060955
1037
components/calendar/__tests__/__snapshots__/index.test.js.snap
Normal file
1037
components/calendar/__tests__/__snapshots__/index.test.js.snap
Normal file
File diff suppressed because it is too large
Load Diff
@ -98,4 +98,13 @@ describe('Calendar', () => {
|
||||
expect(wrapper.state().mode).toEqual(monthMode);
|
||||
expect(onPanelChangeStub).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
it('Calendar should support locale', () => {
|
||||
// eslint-disable-next-line
|
||||
const zhCN = require('../locale/zh_CN').default;
|
||||
const wrapper = mount(
|
||||
<Calendar locale={zhCN} />
|
||||
);
|
||||
expect(wrapper.render()).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user