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', () => {}); }); ```