diff --git a/doc/api/test.md b/doc/api/test.md index 9b61a452d9ea69..6b993d8ac68f07 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -3073,7 +3073,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', () => {}); }); ```