Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelolx committed Sep 3, 2024
1 parent 1a6b9a1 commit d1188c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __tests__/request_interceptor.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/**
* @jest-environment jsdom
*/
import 'isomorphic-fetch'
import { RequestInterceptor } from '../src/request_interceptor'
import { FetchRequest } from '../src/fetch_request'

beforeEach(() => {
window.fetch = jest.fn().mockResolvedValue({ status: 200, body: "done" })
window.fetch = jest.fn().mockResolvedValue(new Response("success!", { status: 200, body: "done" }))
})

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

0 comments on commit d1188c8

Please sign in to comment.