2018-03-29 18:03:14 +08:00
|
|
|
import React from 'react';
|
|
|
|
import { mount } from 'enzyme';
|
2018-01-13 19:11:53 +08:00
|
|
|
import DatePicker from '..';
|
2017-11-30 09:54:31 +08:00
|
|
|
import focusTest from '../../../tests/shared/focusTest';
|
|
|
|
|
2018-01-13 19:11:53 +08:00
|
|
|
const { WeekPicker } = DatePicker;
|
|
|
|
|
2017-11-30 09:54:31 +08:00
|
|
|
describe('WeekPicker', () => {
|
|
|
|
focusTest(WeekPicker);
|
2018-03-29 18:03:14 +08:00
|
|
|
|
|
|
|
it('should support style prop', () => {
|
2018-12-07 16:17:45 +08:00
|
|
|
const wrapper = mount(<WeekPicker style={{ width: 400 }} />);
|
2018-03-29 18:03:14 +08:00
|
|
|
expect(wrapper.render()).toMatchSnapshot();
|
|
|
|
});
|
2017-11-30 09:54:31 +08:00
|
|
|
});
|