Skip to content

Commit

Permalink
test_runner: reporterColorMap changed to map functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mihir254 committed May 6, 2024
1 parent 38766cf commit dcf3e74
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/internal/test_runner/reporter/utils.js
Expand Up @@ -28,9 +28,15 @@ const reporterUnicodeSymbolMap = {

const reporterColorMap = {
'__proto__': null,
'test:fail': colors.red,
'test:pass': colors.green,
'test:diagnostic': colors.blue,
get 'test:fail'() {
return colors.red;
},
get 'test:pass'() {
return colors.green;
},
get 'test:diagnostic'() {
return colors.blue;
},
};

function indent(nesting) {
Expand Down

0 comments on commit dcf3e74

Please sign in to comment.