Skip to content

Commit

Permalink
test: update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Apr 28, 2021
1 parent df2ca1e commit 355c9bb
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions components/input-number/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ describe('InputNumber', () => {
const onChange = jest.fn();
const wrapper = mount(<InputNumber defaultValue="1" onChange={onChange} />);
wrapper.find('input').simulate('change', { target: { value: '' } });
expect(onChange).not.toHaveBeenCalled();

wrapper.find('input').simulate('blur');
expect(onChange).toHaveBeenLastCalledWith(null);
});

Expand Down

0 comments on commit 355c9bb

Please sign in to comment.