Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Aug 7, 2020
1 parent ab084ff commit 2c73203
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/picker.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,7 @@ describe('Picker.Basic', () => {
const wrapper = mount(<MomentPicker open picker="week" />);
expect(wrapper.find('.rc-picker-week-panel').length).toEqual(1);
wrapper.setProps({ picker: 'month' });
wrapper.update();
expect(wrapper.find('.rc-picker-week-panel').length).toEqual(0);
expect(wrapper.find('.rc-picker-month-panel').length).toEqual(1);
});
Expand Down

0 comments on commit 2c73203

Please sign in to comment.