Swapped fetch polyfill
This commit is contained in:
parent
53edb24a63
commit
74c74651b5
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue