Skip to content

Commit d1188c8

Browse files
committed
fix tests
1 parent 1a6b9a1 commit d1188c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

__tests__/request_interceptor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/**
22
* @jest-environment jsdom
33
*/
4+
import 'isomorphic-fetch'
45
import { RequestInterceptor } from '../src/request_interceptor'
56
import { FetchRequest } from '../src/fetch_request'
67

78
beforeEach(() => {
8-
window.fetch = jest.fn().mockResolvedValue({ status: 200, body: "done" })
9+
window.fetch = jest.fn().mockResolvedValue(new Response("success!", { status: 200, body: "done" }))
910
})
1011

1112
test('request intercepter is executed', async () => {

0 commit comments

Comments
 (0)