Skip to content

Commit

Permalink
Merge pull request #239 from sandalwoodbox/patch-1
Browse files Browse the repository at this point in the history
Corrected mockAbort documentation
  • Loading branch information
yinzara authored Mar 15, 2024
2 parents 509478c + 0038db3 commit 8a71ffb
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 8a71ffb

Please sign in to comment.