mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
doc: fix heading levels for test runner hooks
before/after/beforeEach/afterEach are exported directly from `node:test` and should not be indented under `it.todo`. PR-URL: https://github.com/nodejs/node/pull/44603 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
2084ad61a7
commit
53543c6d81
1 file changed
+4
-4
+4
-4
@@ -446,7 +446,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: REPLACEME
|
||||
@@ -474,7 +474,7 @@ describe('tests', async () => {
|
||||
});
|
||||
```
|
||||
|
||||
### `after([, fn][, options])`
|
||||
## `after([, fn][, options])`
|
||||
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
@@ -502,7 +502,7 @@ describe('tests', async () => {
|
||||
});
|
||||
```
|
||||
|
||||
### `beforeEach([, fn][, options])`
|
||||
## `beforeEach([, fn][, options])`
|
||||
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
@@ -531,7 +531,7 @@ describe('tests', async () => {
|
||||
});
|
||||
```
|
||||
|
||||
### `afterEach([, fn][, options])`
|
||||
## `afterEach([, fn][, options])`
|
||||
|
||||
<!-- YAML
|
||||
added: REPLACEME
|
||||
|
||||
Reference in new issue
Block a user