Skip to content

Commit

Permalink
Update resetBehavior.md
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Sep 23, 2021
1 parent 4b54e6d commit 1bdac54
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/_api-lifecycle/resetBehavior.md
Expand Up @@ -4,6 +4,4 @@ position: 5
versionAdded: 7.0.0
description: |-
Removes all mock routes from the instance of `fetch-mock`, and restores `fetch` to its original implementation if mocking globally. Will not clear data recorded for `fetch`'s calls. Optionally pass in a `{sticky: true}` option to remove even sticky routes.
content_markdown: |-
`resetBehavior()` is bound to fetchMock, and can be used directly as a callback e.g. `afterEach(fetchMock.resetBehavior)` will work just fine. There is no need for `afterEach(() => fetchMock.resetBehavior())`
---

0 comments on commit 1bdac54

Please sign in to comment.