Skip to content

Commit 53543c6

Browse files
meyfajuanarbol
authored andcommittedOct 11, 2022
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: #44603 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 2084ad6 commit 53543c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎doc/api/test.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ same as [`it([name], { skip: true }[, fn])`][it options].
446446
Shorthand for marking a test as `TODO`,
447447
same as [`it([name], { todo: true }[, fn])`][it options].
448448

449-
### `before([, fn][, options])`
449+
## `before([, fn][, options])`
450450

451451
<!-- YAML
452452
added: REPLACEME
@@ -474,7 +474,7 @@ describe('tests', async () => {
474474
});
475475
```
476476

477-
### `after([, fn][, options])`
477+
## `after([, fn][, options])`
478478

479479
<!-- YAML
480480
added: REPLACEME
@@ -502,7 +502,7 @@ describe('tests', async () => {
502502
});
503503
```
504504

505-
### `beforeEach([, fn][, options])`
505+
## `beforeEach([, fn][, options])`
506506

507507
<!-- YAML
508508
added: REPLACEME
@@ -531,7 +531,7 @@ describe('tests', async () => {
531531
});
532532
```
533533

534-
### `afterEach([, fn][, options])`
534+
## `afterEach([, fn][, options])`
535535

536536
<!-- YAML
537537
added: REPLACEME

0 commit comments

Comments
 (0)
Please sign in to comment.