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 <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 eliphazbouye committed Jun 20, 2024
1 parent 657baf3 commit 7e20da9
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 @@ -3084,7 +3084,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 7e20da9

Please sign in to comment.