Skip to content

Commit

Permalink
doc: remove unnecessary leading commas
Browse files Browse the repository at this point in the history
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: nodejs#44854
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
cjihrig authored and panva committed Oct 4, 2022
1 parent d74c850 commit 3092d6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/api/test.md
Expand Up @@ -484,7 +484,7 @@ same as [`it([name], { skip: true }[, fn])`][it options].
Shorthand for marking a test as `TODO`,
same as [`it([name], { todo: true }[, fn])`][it options].

## `before([, fn][, options])`
## `before([fn][, options])`

<!-- YAML
added: v18.8.0
Expand Down Expand Up @@ -512,7 +512,7 @@ describe('tests', async () => {
});
```

## `after([, fn][, options])`
## `after([fn][, options])`

<!-- YAML
added: v18.8.0
Expand Down Expand Up @@ -540,7 +540,7 @@ describe('tests', async () => {
});
```

## `beforeEach([, fn][, options])`
## `beforeEach([fn][, options])`

<!-- YAML
added: v18.8.0
Expand Down Expand Up @@ -569,7 +569,7 @@ describe('tests', async () => {
});
```

## `afterEach([, fn][, options])`
## `afterEach([fn][, options])`

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

### `context.beforeEach([, fn][, options])`
### `context.beforeEach([fn][, options])`

<!-- YAML
added: v18.8.0
Expand Down Expand Up @@ -683,7 +683,7 @@ test('top level test', async (t) => {
});
```

### `context.afterEach([, fn][, options])`
### `context.afterEach([fn][, options])`

<!-- YAML
added: v18.8.0
Expand Down

0 comments on commit 3092d6d

Please sign in to comment.