Skip to content

Commit 860a9f2

Browse files
deokjinkimmarco-ippolito
authored andcommitted
doc: fix wrong function name in example of context.plan()
t.subtest -> t.test Refs: #52860 PR-URL: #53140 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent e008604 commit 860a9f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/test.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2939,7 +2939,7 @@ expected count, the test will fail.
29392939
test('top level test', (t) => {
29402940
t.plan(2);
29412941
t.assert.ok('some relevant assertion here');
2942-
t.subtest('subtest', () => {});
2942+
t.test('subtest', () => {});
29432943
});
29442944
```
29452945

0 commit comments

Comments
 (0)