Fix RangePicker test case

This commit is contained in:
afc163 2017-05-29 16:19:59 +08:00
parent 709c750c2b
commit fa235b7876

View File

@ -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();
});
});