From 118df63d9f6175f0cab89f0869bbdbbbe02f29ca Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 23 Dec 2019 12:27:50 -0800 Subject: [PATCH] doc,assert: use code markup/markdown in headers PR-URL: https://github.com/nodejs/node/pull/31086 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater --- doc/api/assert.md | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/doc/api/assert.md b/doc/api/assert.md index 9d1a7fb7e169ea..585a9dff4b3e48 100644 --- a/doc/api/assert.md +++ b/doc/api/assert.md @@ -15,7 +15,7 @@ lenient legacy mode. Indicates the failure of an assertion. All errors thrown by the `assert` module will be instances of the `AssertionError` class. -### new assert.AssertionError(options) +### `new assert.AssertionError(options)` @@ -146,7 +146,7 @@ lax: assert.deepEqual(/a/gi, new Date()); ``` -## assert(value\[, message\]) +## `assert(value[, message])` @@ -156,7 +156,7 @@ added: v0.5.9 An alias of [`assert.ok()`][]. -## assert.deepEqual(actual, expected\[, message\]) +## `assert.deepEqual(actual, expected[, message])` @@ -475,7 +475,7 @@ assert.doesNotReject(Promise.reject(new TypeError('Wrong value'))) }); ``` -## assert.doesNotThrow(fn\[, error\]\[, message\]) +## `assert.doesNotThrow(fn[, error][, message])` @@ -591,7 +591,7 @@ parameter is undefined, a default error message is assigned. If the `message` parameter is an instance of an [`Error`][] then it will be thrown instead of the `AssertionError`. -## assert.fail(\[message\]) +## `assert.fail([message])` @@ -618,7 +618,7 @@ assert.fail(new TypeError('need array')); Using `assert.fail()` with more than two arguments is possible but deprecated. See below for further details. -## assert.fail(actual, expected\[, message\[, operator\[, stackStartFn\]\]\]) +## `assert.fail(actual, expected[, message[, operator[, stackStartFn]]])` @@ -889,7 +889,7 @@ parameter is undefined, a default error message is assigned. If the `message` parameter is an instance of an [`Error`][] then it will be thrown instead of the `AssertionError`. -## assert.notStrictEqual(actual, expected\[, message\]) +## `assert.notStrictEqual(actual, expected[, message])` @@ -1053,7 +1053,7 @@ argument, then `error` is assumed to be omitted and the string will be used for example in [`assert.throws()`][] carefully if using a string as the second argument gets considered. -## assert.strictEqual(actual, expected\[, message\]) +## `assert.strictEqual(actual, expected[, message])`