mirror of
https://github.com/agersant/polaris
synced 2024-12-04 02:29:11 +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" : {
|
"test_settings" : {
|
||||||
"default" : {
|
"default" : {
|
||||||
"silent": true,
|
"silent": true,
|
||||||
"screenshots" : {
|
"exclude": "globals.js",
|
||||||
"enabled" : false,
|
"screenshots" : {
|
||||||
"path" : ""
|
"enabled" : false,
|
||||||
},
|
"path" : ""
|
||||||
"desiredCapabilities": {
|
},
|
||||||
"browserName": "phantomjs",
|
"desiredCapabilities": {
|
||||||
"javascriptEnabled" : true
|
"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