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