Files

Return to Package Diff Home.
Brought to you by Intrinsic.

Package Diff: jest-fetch-mock @ 2.1.1 .. 2.1.2

package.json

@@ -1,6 +1,6 @@
{
"name": "jest-fetch-mock",
- "version": "2.1.1",
+ "version": "2.1.2",
"description": "fetch mock for jest",
"main": "src/index.js",
"types": "types",

README.md

@@ -529,8 +529,7 @@
describe('testing timeouts', () => {
it('resolves with function and timeout', async () => {
fetch.mockResponseOnce(
- () => new Promise(resolve => setTimeout(() => resolve({ body: 'ok' }))),
- 100
+ () => new Promise(resolve => setTimeout(() => resolve({ body: 'ok' }), 100))
)
try {
const response = await request()