mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 05:05:48 +08:00
Fix RangePicker test case
This commit is contained in:
parent
709c750c2b
commit
fa235b7876
@ -72,7 +72,7 @@ describe('RangePicker', () => {
|
||||
);
|
||||
wrapper.setProps({ value: [] });
|
||||
const rangeCalendarWrapper = mount(wrapper.find('Trigger').node.getComponent());
|
||||
expect(() => rangeCalendarWrapper.find('.ant-calendar-today').simulate('click').simulate('click'))
|
||||
expect(() => rangeCalendarWrapper.find('.ant-calendar-today').at(0).simulate('click').simulate('click'))
|
||||
.not.toThrow();
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user