Skip to content

Commit

Permalink
doc: fix typos in test.md
Browse files Browse the repository at this point in the history
PR-URL: #43997
Reviewed-By: Harshitha K P <harshitha014@gmail.com>
Reviewed-By: Feng Yu <F3n67u@outlook.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
aduh95 authored and juanarbol committed Oct 11, 2022
1 parent e009a35 commit 9f7a728
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/api/test.md
Expand Up @@ -345,7 +345,7 @@ changes:
* `only` {boolean} If truthy, and the test context is configured to run
`only` tests, then this test will be run. Otherwise, the test is skipped.
**Default:** `false`.
* `signal` {AbortSignal} Allows aborting an in-progress test
* `signal` {AbortSignal} Allows aborting an in-progress test.
* `skip` {boolean|string} If truthy, the test is skipped. If a string is
provided, that string is displayed in the test results as the reason for
skipping the test. **Default:** `false`.
Expand Down Expand Up @@ -504,7 +504,8 @@ test('top level test', (t) => {
added: v16.17.0
-->

* <AbortSignal> Can be used to abort test subtasks when the test has been aborted.
* {AbortSignal} Can be used to abort test subtasks when the test has been
aborted.

```js
test('top level test', async (t) => {
Expand Down Expand Up @@ -575,7 +576,7 @@ changes:
* `only` {boolean} If truthy, and the test context is configured to run
`only` tests, then this test will be run. Otherwise, the test is skipped.
**Default:** `false`.
* `signal` {AbortSignal} Allows aborting an in-progress test
* `signal` {AbortSignal} Allows aborting an in-progress test.
* `skip` {boolean|string} If truthy, the test is skipped. If a string is
provided, that string is displayed in the test results as the reason for
skipping the test. **Default:** `false`.
Expand Down Expand Up @@ -622,7 +623,8 @@ exposed as part of the API.
added: v16.17.0
-->

* <AbortSignal> Can be used to abort test subtasks when the test has been aborted.
* {AbortSignal} Can be used to abort test subtasks when the test has been
aborted.

[TAP]: https://testanything.org/
[`--test-only`]: cli.md#--test-only
Expand Down

0 comments on commit 9f7a728

Please sign in to comment.