Browse Source

Fix RangePicker test case

pull/6291/head
afc163 8 years ago
parent
commit
fa235b7876
  1. 2
      components/date-picker/__tests__/RangePicker.test.js

2
components/date-picker/__tests__/RangePicker.test.js

@ -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…
Cancel
Save