Skip to content

Commit 8a71ffb

Browse files
authored
Merge pull request #239 from sandalwoodbox/patch-1
Corrected mockAbort documentation
2 parents 509478c + 0038db3 commit 8a71ffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ describe('Access token action creators', () => {
352352
Fetches can be mocked to act as if they were aborted during the request. This can be done in 4 ways:
353353

354354
<ol>
355-
<li>Using `fetch.mockAborted()`</li>
356-
<li>Using `fetch.mockAbortedOnce()`</li>
355+
<li>Using `fetch.mockAbort()`</li>
356+
<li>Using `fetch.mockAbortOnce()`</li>
357357
<li>Passing a request (or request init) with a 'signal' to fetch that has been aborted</li>
358358
<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>
359359
</ol>

0 commit comments

Comments
 (0)