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 &
|
- java -jar selenium.jar &
|
||||||
- npm install -g nightwatch
|
- npm install -g nightwatch
|
||||||
- nightwatch -v
|
- nightwatch -v
|
||||||
- npm install whatwg-fetch
|
- npm install node-fetch --no-save
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- cargo build --verbose
|
- cargo build --verbose
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
before : function(cb) {
|
before : function(cb) {
|
||||||
console.log("Requiring fetch polyfill");
|
console.log("Requiring fetch polyfill");
|
||||||
fetch = require('whatwg-fetch').fetch;
|
fetch = require('node-fetch').fetch;
|
||||||
cb();
|
cb();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue