From 53edb24a63c16a996a407c757f1421e305517ac1 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Tue, 4 Jul 2017 03:25:21 -0700 Subject: [PATCH] Loading fetch polyfill into global --- test/nightwatch/globals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/nightwatch/globals.js b/test/nightwatch/globals.js index 998dfe1..1edd8d0 100644 --- a/test/nightwatch/globals.js +++ b/test/nightwatch/globals.js @@ -1,7 +1,7 @@ module.exports = { before : function(cb) { console.log("Requiring fetch polyfill"); - require('whatwg-fetch'); + fetch = require('whatwg-fetch').fetch; cb(); } };