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 and marco-ippolito committed Jul 19, 2024
1 parent e008604 commit 860a9f2
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 @@ -2939,7 +2939,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 860a9f2

Please sign in to comment.