Skip to content

Commit

Permalink
fix: test of search-bar
Browse files Browse the repository at this point in the history
  • Loading branch information
BANG88 committed Aug 21, 2019
1 parent 804590d commit fa8fc35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/search-bar/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ describe('SearchBar', () => {
it('fires onFocus event', () => {
wrapper = renderer.create(<SearchBar onFocus={handler} />);
wrapper.root.findByType(TextInput).props.onFocus();
expect(handler).toBeCalledWith();
expect(handler).toBeCalledWith(undefined);
});

it('fires onBlur event', () => {
wrapper = renderer.create(<SearchBar onBlur={handler} />);
wrapper.root.findByType(TextInput).props.onBlur();
expect(handler).toBeCalledWith();
expect(handler).toBeCalledWith(undefined);
});

it('fires onCancel event', () => {
Expand Down

0 comments on commit fa8fc35

Please sign in to comment.