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: nodejs#52860
PR-URL: nodejs#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 bmeck committed Jun 22, 2024
1 parent c9774aa commit 4d29797
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 @@ -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', () => {});
});
```

Expand Down

0 comments on commit 4d29797

Please sign in to comment.