Skip to content

Commit

Permalink
Typo: Follwing (jestjs#5756)
Browse files Browse the repository at this point in the history
Typo in comment: 
// or you could use the follwing...
// or you could use the following...
  • Loading branch information
jmfigueroa authored and thomasjinlo committed Mar 9, 2018
1 parent 1c41227 commit bb6c814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/MockFunctions.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ test('should fetch users', () => {
const resp = {data: [{name: 'Bob'}]};
axios.get.mockResolvedValue(resp);

// or you could use the follwing depending on your use case:
// or you could use the following depending on your use case:
// axios.get.mockImpementation(() => Promise.resolve(resp))

return Users.all().then(users => expect(users).toEqual(resp.data));
Expand Down

0 comments on commit bb6c814

Please sign in to comment.