mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-04-24 00:00:03 +08:00
refactor e2e test scripts
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module.exports = { setupLogging };
|
||||
|
||||
function setupLogging(driver) {
|
||||
require('colors');
|
||||
|
||||
driver.on('status', info => {
|
||||
console.log(info.cyan);
|
||||
});
|
||||
|
||||
driver.on('command', (meth, path, data) => {
|
||||
console.log(' > ' + meth.yellow, path.grey, data || '');
|
||||
});
|
||||
|
||||
driver.on('http', (meth, path, data) => {
|
||||
console.log(' > ' + meth.magenta, path, (data || '').grey);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user