diff options
author | Fabian Meyer <3982806+meyfa@users.noreply.github.com> | 2022-09-12 22:37:41 +0300 |
---|---|---|
committer | Juan José Arboleda <soyjuanarbol@gmail.com> | 2022-10-11 22:45:24 +0300 |
commit | 53543c6d81b5775ecedecb31a5fb7f563ddfeeba (patch) | |
tree | 5d836b299a5405074adcedcb5b5e37f25bc4a656 /doc | |
parent | 2084ad61a7440fa5778e96568981f2425fc3fd1b (diff) |
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>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/test.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/test.md b/doc/api/test.md index e955c6f1b2a..c67a4e875eb 100644 --- a/doc/api/test.md +++ b/doc/api/test.md @@ -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 |