From 1366dffadb135d0df66d4dbc8fb1e06753f44f6b Mon Sep 17 00:00:00 2001 From: Moshe Atlow Date: Wed, 15 Jun 2022 10:23:49 +0300 Subject: [PATCH] fix --- lib/internal/test_runner/tap_stream.js | 2 +- lib/internal/test_runner/test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/internal/test_runner/tap_stream.js b/lib/internal/test_runner/tap_stream.js index 176676f5a74d35..ca0c101aa9260c 100644 --- a/lib/internal/test_runner/tap_stream.js +++ b/lib/internal/test_runner/tap_stream.js @@ -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`); } diff --git a/lib/internal/test_runner/test.js b/lib/internal/test_runner/test.js index 39db7f668608a2..388a3b13d0c6a4 100644 --- a/lib/internal/test_runner/test.js +++ b/lib/internal/test_runner/test.js @@ -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; } @@ -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();