Skip to content

Commit cbf43e9

Browse files
hscgavinloris
authored and
loris
committed
fix(README): correct mock slow servers code example (#103)
1 parent 665b614 commit cbf43e9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,7 @@ import { request } from './api'
529529
describe('testing timeouts', () => {
530530
it('resolves with function and timeout', async () => {
531531
fetch.mockResponseOnce(
532-
() => new Promise(resolve => setTimeout(() => resolve({ body: 'ok' }))),
533-
100
532+
() => new Promise(resolve => setTimeout(() => resolve({ body: 'ok' }), 100))
534533
)
535534
try {
536535
const response = await request()

0 commit comments

Comments
 (0)