Swapped fetch polyfill

This commit is contained in:
Antoine Gersant 2017-07-04 03:36:35 -07:00
parent 53edb24a63
commit 74c74651b5
2 changed files with 2 additions and 2 deletions

View file

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

View file

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