Skip to content

Commit

Permalink
Update v6-v7-upgrade-guide.md
Browse files Browse the repository at this point in the history
Fix a small typo in docs.
  • Loading branch information
joekrump authored and wheresrhys committed Sep 17, 2020
1 parent fcdfe05 commit 98dfca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/v6-v7-upgrade-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Please give me your feedback as github issues/pull requests. It feels like a big
To keep the library in line with `sinon`, the most popular mocking libarry in the js ecosystem, a few method names & behaviours have been changed

- `reset()` now resets both call history _and_ the mocking behaviour of fetch-mock - It's a complete teardown of the mocks that have been set up. `restore()` has been kept as an alias for this method
- `resetHistory()` now removes call history. Any previous uses of `reset()` shodul be replaced with `resetHistory()`
- `resetHistory()` now removes call history. Any previous uses of `reset()` should be replaced with `resetHistory()`
- `resetBehavior()` is a new method which removes mocking behaviour without resetting call history

## `throws` option now rejects a Promise
Expand Down

0 comments on commit 98dfca6

Please sign in to comment.