mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Migrate tests away from "jsdom" environment
Reviewed By: leebyron Differential Revision: D5748304 fbshipit-source-id: c66df45f1f35333f994c41eb8ff4cfccc1bb04d4
This commit is contained in:
committed by
Facebook Github Bot
parent
7b770556ac
commit
bae5505902
@@ -14,6 +14,10 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
import 'whatwg-fetch';
|
||||
import whatwg from 'whatwg-fetch';
|
||||
|
||||
module.exports = {fetch, Headers, Request, Response};
|
||||
if (whatwg && whatwg.fetch) {
|
||||
module.exports = whatwg;
|
||||
} else {
|
||||
module.exports = {fetch, Headers, Request, Response};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user