Skip to content

Commit

Permalink
Corrected mockAbort documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sandalwoodbox authored Nov 7, 2022
1 parent 46e09b9 commit 0038db3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ describe('Access token action creators', () => {
Fetches can be mocked to act as if they were aborted during the request. This can be done in 4 ways:

<ol>
<li>Using `fetch.mockAborted()`</li>
<li>Using `fetch.mockAbortedOnce()`</li>
<li>Using `fetch.mockAbort()`</li>
<li>Using `fetch.mockAbortOnce()`</li>
<li>Passing a request (or request init) with a 'signal' to fetch that has been aborted</li>
<li>Passing a request (or request init) with a 'signal' to fetch and a async function to `fetch.mockResponse` or `fetch.mockResponseOnce` that causes the signal to abort before returning the response</li>
</ol>
Expand Down

0 comments on commit 0038db3

Please sign in to comment.