Migrate tests away from "jsdom" environment

Reviewed By: leebyron

Differential Revision: D5748304

fbshipit-source-id: c66df45f1f35333f994c41eb8ff4cfccc1bb04d4
This commit is contained in:
Miguel Jimenez Esun
2017-09-11 09:36:25 -07:00
committed by Facebook Github Bot
parent 7b770556ac
commit bae5505902
3 changed files with 9 additions and 3 deletions

View File

@@ -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};
}