mirror of
https://github.com/agersant/polaris
synced 2024-12-03 18:19:09 +00:00
Attempt to actually load the fetch polyfill
This commit is contained in:
parent
7cdfc73f0e
commit
2e8591a3f6
2 changed files with 23 additions and 14 deletions
|
@ -1,17 +1,19 @@
|
|||
{
|
||||
"src_folders" : ["test/nightwatch"],
|
||||
"src_folders" : ["test/nightwatch"],
|
||||
"globals": "test/nightwatch/globals.js",
|
||||
|
||||
"test_settings" : {
|
||||
"default" : {
|
||||
"silent": true,
|
||||
"screenshots" : {
|
||||
"enabled" : false,
|
||||
"path" : ""
|
||||
},
|
||||
"desiredCapabilities": {
|
||||
"browserName": "phantomjs",
|
||||
"javascriptEnabled" : true
|
||||
}
|
||||
}
|
||||
}
|
||||
"test_settings" : {
|
||||
"default" : {
|
||||
"silent": true,
|
||||
"exclude": "globals.js",
|
||||
"screenshots" : {
|
||||
"enabled" : false,
|
||||
"path" : ""
|
||||
},
|
||||
"desiredCapabilities": {
|
||||
"browserName": "phantomjs",
|
||||
"javascriptEnabled" : true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
7
test/nightwatch/globals.js
Normal file
7
test/nightwatch/globals.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
module.exports = {
|
||||
before : function(cb) {
|
||||
console.log("Requiring fetch polyfill");
|
||||
require('whatwg-fetch');
|
||||
cb();
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue