From 860a9f21d558f6796f3589d14733fe865ce44861 Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Mon, 27 May 2024 00:03:34 +0900 Subject: [PATCH] doc: fix wrong function name in example of `context.plan()` t.subtest -> t.test Refs: https://github.com/nodejs/node/pull/52860 PR-URL: https://github.com/nodejs/node/pull/53140 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Chemi Atlow Reviewed-By: Moshe Atlow --- doc/api/test.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/test.md b/doc/api/test.md index 725b02f0e7428b..15fb9c261a242f 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -2939,7 +2939,7 @@ expected count, the test will fail. test('top level test', (t) => { t.plan(2); t.assert.ok('some relevant assertion here'); - t.subtest('subtest', () => {}); + t.test('subtest', () => {}); }); ```