Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_runner: changing spec from class to function #48208

Closed
Prev Previous commit
Next Next commit
Fixing tests
  • Loading branch information
shubham9411 committed Jul 15, 2023
commit d6c0e92248283bf015c4bf76e74350e211300bde
6 changes: 3 additions & 3 deletions lib/internal/test_runner/reporter/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,13 @@ async function* spec(source) {
break;
case 'test:stderr':
case 'test:stdout':
yield `${data.message}\n`;
yield data.message;
break;
case 'test:diagnostic':
yield `${colors[type]}${indent(data.nesting)}${symbols[type]}${data.message}${white}\n`;
break;
case 'test:coverage':
yield getCoverageReport(indent(data.nesting), data.summary, symbols['test:coverage'], blue);
yield getCoverageReport(indent(data.nesting), data.summary, symbols['test:coverage'], blue, true);
break;
}
}
Expand All @@ -139,7 +139,7 @@ async function* spec(source) {
failedTests[i],
));
}
yield results.join('');
yield results.join('\n');
}
}

Expand Down