mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 07:39:36 +08:00
b7e877aeef
* refactor(slider): rewrite with hook
* improve test
* Revert "improve test"
This reverts commit 48cd83d0cc
.
* improve test
* improve test 2
25 lines
587 B
JavaScript
25 lines
587 B
JavaScript
import React from 'react';
|
|
import { mount } from 'enzyme';
|
|
import { setMockDate, resetMockDate } from '../../../tests/utils';
|
|
import DatePicker from '..';
|
|
import focusTest from '../../../tests/shared/focusTest';
|
|
|
|
const { WeekPicker } = DatePicker;
|
|
|
|
describe('WeekPicker', () => {
|
|
beforeEach(() => {
|
|
setMockDate();
|
|
});
|
|
|
|
afterEach(() => {
|
|
resetMockDate();
|
|
});
|
|
|
|
focusTest(WeekPicker, { refFocus: true });
|
|
|
|
it('should support style prop', () => {
|
|
const wrapper = mount(<WeekPicker style={{ width: 400 }} />);
|
|
expect(wrapper.render()).toMatchSnapshot();
|
|
});
|
|
});
|