Skip to content

Commit 1366dff

Browse files
committed
fix
1 parent ea73832 commit 1366dff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/internal/test_runner/tap_stream.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class TapStream extends Readable {
7171
return `TODO${reason ? ` ${tapEscape(reason)}` : ''}`;
7272
}
7373

74-
subTest(indent, name) {
74+
subtest(indent, name) {
7575
this.#tryPush(`${indent}# Subtest: ${tapEscape(name)}\n`);
7676
}
7777

lib/internal/test_runner/test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class Test extends AsyncResource {
186186
}
187187

188188
if (this.shouldReportSubtest) {
189-
this.reporter.subTest(this.indent, this.name);
189+
this.reporter.subtest(this.indent, this.name);
190190
this.shouldReportSubtest = false;
191191
}
192192

@@ -424,7 +424,7 @@ class Test extends AsyncResource {
424424
if (this.subtests.length > 0) {
425425
this.reporter.plan(this.subtests[0].indent, this.subtests.length);
426426
} else {
427-
this.reporter.subTest(this.indent, this.name);
427+
this.reporter.subtest(this.indent, this.name);
428428
}
429429

430430
this.report();

0 commit comments

Comments
 (0)