From 03705639c4fccd973ea120276e56beb40db44088 Mon Sep 17 00:00:00 2001
From: Fabian Meyer <3982806+meyfa@users.noreply.github.com>
Date: Mon, 12 Sep 2022 21:37:41 +0200
Subject: [PATCH] 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>
---
 doc/api/test.md | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/api/test.md b/doc/api/test.md
index 5f2eba4fa5e57a..12e9b251956b80 100644
--- a/doc/api/test.md
+++ b/doc/api/test.md
@@ -475,7 +475,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
@@ -503,7 +503,7 @@ describe('tests', async () => {
 });
 ```
 
-### `after([, fn][, options])`
+## `after([, fn][, options])`
 
 <!-- YAML
 added: v18.8.0
@@ -531,7 +531,7 @@ describe('tests', async () => {
 });
 ```
 
-### `beforeEach([, fn][, options])`
+## `beforeEach([, fn][, options])`
 
 <!-- YAML
 added: v18.8.0
@@ -560,7 +560,7 @@ describe('tests', async () => {
 });
 ```
 
-### `afterEach([, fn][, options])`
+## `afterEach([, fn][, options])`
 
 <!-- YAML
 added: v18.8.0