Skip to content

Commit d05e777

Browse files
committed
test_runner: remove indentation for lint-js
This test ensures the functionality of `/* node:coverage */` control comments. It uses a new fixture (`coverage-control-comments.js`) to verify each type of control comment, improving the reliability of the test runner.
1 parent 72b7c12 commit d05e777

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test/parallel/test-runner-coverage.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -552,21 +552,21 @@ test('correctly prints the coverage report of files contained in parent director
552552
});
553553

554554
test('should respect /* node:coverage */ comments', skipIfNoInspector, () => {
555-
let report = [
556-
'# start of coverage report',
557-
'# ---------------------------------------------------------------------------------',
558-
'# file | line % | branch % | funcs % | uncovered lines',
559-
'# ---------------------------------------------------------------------------------',
560-
'# test | | | | ',
561-
'# fixtures | | | | ',
562-
'# test-runner | | | | ',
563-
'# coverage | | | | ',
564-
'# coverage-control-comments.js | 100.00 | 100.00 | 100.00 | ',
565-
'# ---------------------------------------------------------------------------------',
566-
'# all files | 100.00 | 100.00 | 100.00 | ',
567-
'# ---------------------------------------------------------------------------------',
568-
'# end of coverage report',
569-
].join('\n');
555+
const report = [
556+
'# start of coverage report',
557+
'# ---------------------------------------------------------------------------------',
558+
'# file | line % | branch % | funcs % | uncovered lines',
559+
'# ---------------------------------------------------------------------------------',
560+
'# test | | | | ',
561+
'# fixtures | | | | ',
562+
'# test-runner | | | | ',
563+
'# coverage | | | | ',
564+
'# coverage-control-comments.js | 100.00 | 100.00 | 100.00 | ',
565+
'# ---------------------------------------------------------------------------------',
566+
'# all files | 100.00 | 100.00 | 100.00 | ',
567+
'# ---------------------------------------------------------------------------------',
568+
'# end of coverage report',
569+
].join('\n');
570570

571571
if (common.isWindows) {
572572
return report.replaceAll('/', '\\');
@@ -587,4 +587,4 @@ test('should respect /* node:coverage */ comments', skipIfNoInspector, () => {
587587
assert.strictEqual(result.stderr.toString(), '');
588588
assert(result.stdout.toString().includes(report));
589589
assert.strictEqual(result.status, 0);
590-
});
590+
});

0 commit comments

Comments
 (0)