Skip to content

Commit

Permalink
More exhaustive test for <Focus /> component (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
everdimension authored and TrySound committed Oct 5, 2018
1 parent 508f65a commit 3bb8551
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/components/Focus.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ test('<Focus onChange />', () => {
lastCallArg(renderFn).bind.onFocus()
expect(onChangeFn).toBeCalledTimes(1)
expect(onChangeFn).lastCalledWith(true)

lastCallArg(renderFn).bind.onBlur()
expect(onChangeFn).toBeCalledTimes(2)
expect(onChangeFn).lastCalledWith(false)
})

0 comments on commit 3bb8551

Please sign in to comment.