Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybotha committed Feb 7, 2019
1 parent beb046d commit 83c7c5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ $ npx jest greeting
To test `async/await` we need to

1. import `wait` from `react-testing-libary` to assert `async` responses
2. mock the api function using `jest.mock` and `jet.fn` so that we can
2. mock the api function using `jest.mock` and `jest.fn` so that we can
assert calls on the function
3. import the mocked api function so that we can use it for assertions
4. assert the response from calling the api response inside the callback
Expand Down

0 comments on commit 83c7c5c

Please sign in to comment.