Skip to content

Commit 8dc7c8a

Browse files
lib: adds colors to X's and .'s in test_runner dot reporter
1 parent 55f3d42 commit 8dc7c8a

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/test_runner/reporter

1 file changed

+2
-2
lines changed

lib/internal/test_runner/reporter/dot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ module.exports = async function* dot(source) {
77
let columns = getLineLength();
88
for await (const { type } of source) {
99
if (type === 'test:pass') {
10-
yield '${green}.${clear}';
10+
yield `${green}.${clear}`;
1111
}
1212
if (type === 'test:fail') {
13-
yield '${red}X${clear}';
13+
yield `${red}X${clear}`;
1414
}
1515
if ((type === 'test:fail' || type === 'test:pass') && ++count === columns) {
1616
yield '\n';

0 commit comments

Comments
 (0)