mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 08:59:15 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
25 lines
575 B
TypeScript
25 lines
575 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();
|
|
});
|
|
});
|