mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 07:09:55 +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();
|
|
});
|
|
});
|