Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Jun 15, 2022
1 parent ea73832 commit 1366dff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/internal/test_runner/tap_stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class TapStream extends Readable {
return `TODO${reason ? ` ${tapEscape(reason)}` : ''}`;
}

subTest(indent, name) {
subtest(indent, name) {
this.#tryPush(`${indent}# Subtest: ${tapEscape(name)}\n`);
}

Expand Down
4 changes: 2 additions & 2 deletions lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class Test extends AsyncResource {
}

if (this.shouldReportSubtest) {
this.reporter.subTest(this.indent, this.name);
this.reporter.subtest(this.indent, this.name);
this.shouldReportSubtest = false;
}

Expand Down Expand Up @@ -424,7 +424,7 @@ class Test extends AsyncResource {
if (this.subtests.length > 0) {
this.reporter.plan(this.subtests[0].indent, this.subtests.length);
} else {
this.reporter.subTest(this.indent, this.name);
this.reporter.subtest(this.indent, this.name);
}

this.report();
Expand Down

0 comments on commit 1366dff

Please sign in to comment.