Skip to content

Commit 6544235

Browse files
fixup!: remove unnecessary code comment
1 parent e6fcf0e commit 6544235

File tree

1 file changed

+1
-4
lines changed
  • lib/internal/test_runner/reporter

1 file changed

+1
-4
lines changed

lib/internal/test_runner/reporter/tap.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ function reportTest(nesting, testNumber, status, name, skip, todo, xfail) {
7676
line += ` # SKIP${typeof skip === 'string' && skip.length ? ` ${tapEscape(skip)}` : ''}`;
7777
} else if (todo !== undefined) {
7878
line += ` # TODO${typeof todo === 'string' && todo.length ? ` ${tapEscape(todo)}` : ''}`;
79-
}
80-
// `skip` should trump, and `todo` + `fail` is a mistake, but it will already fail, so nothing to
81-
// do when this is after `todo`.
82-
else if (xfail !== undefined) {
79+
} else if (xfail !== undefined) {
8380
line += ' # EXPECTED FAILURE';
8481
}
8582

0 commit comments

Comments
 (0)