Skip to content

Commit

Permalink
feat(console,color): add shell default
Browse files Browse the repository at this point in the history
  • Loading branch information
vobu committed Nov 29, 2021
1 parent ff5d369 commit 6c1f2a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wdio-ui5-service/src/lib/coloredConsole.js
Expand Up @@ -12,6 +12,8 @@ const translate = (color) => {
return '35';
case 'cyan':
return '36';
case 'default':
return '0';
default:
return '32'; // all is good
}
Expand All @@ -25,6 +27,6 @@ const colored =
: console.log(msg, ...other);

const _ = {};
['red', 'green', 'yellow', 'blue', 'magenta', 'cyan'].forEach((color) => (_[color] = colored(color)));
['red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'default'].forEach((color) => (_[color] = colored(color)));

module.exports = Object.assign(console, _);

0 comments on commit 6c1f2a8

Please sign in to comment.