Skip to content

Commit

Permalink
feat(node): Apply custom format to the output
Browse files Browse the repository at this point in the history
  • Loading branch information
steepnicki committed Apr 17, 2020
1 parent db306db commit 950bafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function formatArgs(args) {
if (useColors) {
const c = this.color;
const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c);
const prefix = ` ${colorCode};1m${name} \u001B[0m`;
const prefix = `${colorCode};1m[ ${name} ] \u001B[0m`;

args[0] = prefix + args[0].split('\n').join('\n' + prefix);
args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m');
Expand Down

0 comments on commit 950bafa

Please sign in to comment.