Skip to content

Commit 892d360

Browse files
authored
doc: fix wrong function name in example of context.plan()
t.subtest -> t.test Refs: #52860 PR-URL: #53140 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent dc609f5 commit 892d360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/test.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3081,7 +3081,7 @@ expected count, the test will fail.
30813081
test('top level test', (t) => {
30823082
t.plan(2);
30833083
t.assert.ok('some relevant assertion here');
3084-
t.subtest('subtest', () => {});
3084+
t.test('subtest', () => {});
30853085
});
30863086
```
30873087

0 commit comments

Comments
 (0)