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(); } };