mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-15 17:31:25 +08:00
ac5a06027e
This reverts commit ea8ed28209
.
13 lines
398 B
TypeScript
13 lines
398 B
TypeScript
import dayjs from 'dayjs';
|
|
import * as React from 'react';
|
|
import demoTest, { rootPropsTest } from '../../../tests/shared/demoTest';
|
|
|
|
demoTest('time-picker', {
|
|
testRootProps: false,
|
|
});
|
|
|
|
rootPropsTest('time-picker', (TimePicker, props) => <TimePicker {...props} value={dayjs()} />, {
|
|
findRootElements: () => document.querySelectorAll('.ant-picker, .ant-picker-dropdown'),
|
|
expectCount: 2,
|
|
});
|