1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Inline isomorphic-fetch test helper (#7945)

This commit is contained in:
Whymarrh Whitby 2020-01-29 21:31:32 -03:30 committed by GitHub
parent 4ad49ffd68
commit 2f3f605521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -239,7 +239,6 @@
"gulp-watch": "^5.0.1",
"gulp-zip": "^4.0.0",
"http-server": "^0.11.1",
"isomorphic-fetch": "^2.2.1",
"jsdom": "^11.2.0",
"jsdom-global": "^3.0.2",
"karma": "^4.1.0",

View File

@ -42,7 +42,12 @@ global.log = log
//
// fetch
global.fetch = require('isomorphic-fetch')
const fetch = require('node-fetch')
global.fetch = fetch
global.Response = fetch.Response
global.Headers = fetch.Headers
global.Request = fetch.Request
require('abortcontroller-polyfill/dist/polyfill-patch-fetch')
// dom