From 74c74651b56bc2861fade700b652426e5fe5ad87 Mon Sep 17 00:00:00 2001 From: Antoine Gersant Date: Tue, 4 Jul 2017 03:36:35 -0700 Subject: [PATCH] Swapped fetch polyfill --- .travis.yml | 2 +- test/nightwatch/globals.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index fbdf0b6..30c7941 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ before_install: - java -jar selenium.jar & - npm install -g nightwatch - nightwatch -v - - npm install whatwg-fetch + - npm install node-fetch --no-save script: - cargo build --verbose diff --git a/test/nightwatch/globals.js b/test/nightwatch/globals.js index 1edd8d0..9a4a131 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"); - fetch = require('whatwg-fetch').fetch; + fetch = require('node-fetch').fetch; cb(); } };