Skip to content

Commit

Permalink
doc: fix wrong function name in example of context.plan()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
deokjinkim authored and targos committed Jun 1, 2024
1 parent e079967 commit 7147c1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {});
});
```

Expand Down

0 comments on commit 7147c1d

Please sign in to comment.