Skip to content

Commit 417458d

Browse files
authored
doc: remove unnecessary leading commas
There are several locations in the test_runner API docs where the optional first argument to a function was written with a leading comma. Since these are first arguments, the commas can be removed. PR-URL: #44854 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Daeyeon Jeong <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent b5e1387 commit 417458d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/api/test.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ same as [`it([name], { skip: true }[, fn])`][it options].
484484
Shorthand for marking a test as `TODO`,
485485
same as [`it([name], { todo: true }[, fn])`][it options].
486486

487-
## `before([, fn][, options])`
487+
## `before([fn][, options])`
488488

489489
<!-- YAML
490490
added: v18.8.0
@@ -512,7 +512,7 @@ describe('tests', async () => {
512512
});
513513
```
514514

515-
## `after([, fn][, options])`
515+
## `after([fn][, options])`
516516

517517
<!-- YAML
518518
added: v18.8.0
@@ -540,7 +540,7 @@ describe('tests', async () => {
540540
});
541541
```
542542

543-
## `beforeEach([, fn][, options])`
543+
## `beforeEach([fn][, options])`
544544

545545
<!-- YAML
546546
added: v18.8.0
@@ -569,7 +569,7 @@ describe('tests', async () => {
569569
});
570570
```
571571

572-
## `afterEach([, fn][, options])`
572+
## `afterEach([fn][, options])`
573573

574574
<!-- YAML
575575
added: v18.8.0
@@ -651,7 +651,7 @@ An instance of `TestContext` is passed to each test function in order to
651651
interact with the test runner. However, the `TestContext` constructor is not
652652
exposed as part of the API.
653653

654-
### `context.beforeEach([, fn][, options])`
654+
### `context.beforeEach([fn][, options])`
655655

656656
<!-- YAML
657657
added: v18.8.0
@@ -683,7 +683,7 @@ test('top level test', async (t) => {
683683
});
684684
```
685685

686-
### `context.afterEach([, fn][, options])`
686+
### `context.afterEach([fn][, options])`
687687

688688
<!-- YAML
689689
added: v18.8.0

0 commit comments

Comments
 (0)