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 <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>
  • Loading branch information
deokjinkim authored May 26, 2024
1 parent dc609f5 commit 892d360
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 892d360

Please sign in to comment.