From 8975fef966be0cc29f03269bfc87a06bd5a979dd Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Fri, 24 May 2024 23:51:40 +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 --- 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 3c68924ac4e78c..153b15df875128 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -3081,7 +3081,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', () => {}); }); ```