mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
8010cd19b6
* test: migrate part of DatePicker tests * test: migrate part of DatePicker tests * fix: update snap * test: migrate part of DatePicker tests * test: migrate part of DatePicker tests * test: migrate part of DatePicker tests * test: migrate part of DatePicker tests * test: migrate part of DatePicker tests * test: migrate part of DatePicker tests * test: remove useless methods * test: add test ignore
24 lines
574 B
TypeScript
24 lines
574 B
TypeScript
import React from 'react';
|
|
import DatePicker from '..';
|
|
import focusTest from '../../../tests/shared/focusTest';
|
|
import { render, resetMockDate, setMockDate } from '../../../tests/utils';
|
|
|
|
const { WeekPicker } = DatePicker;
|
|
|
|
describe('WeekPicker', () => {
|
|
beforeEach(() => {
|
|
setMockDate();
|
|
});
|
|
|
|
afterEach(() => {
|
|
resetMockDate();
|
|
});
|
|
|
|
focusTest(WeekPicker, { refFocus: true });
|
|
|
|
it('should support style prop', () => {
|
|
const { container } = render(<WeekPicker style={{ width: 400 }} />);
|
|
expect(container.firstChild).toMatchSnapshot();
|
|
});
|
|
});
|