@@ -10,6 +10,7 @@ The `assert` module provides a set of assertion functions for verifying
1010invariants.
1111
1212## Strict assertion mode
13+
1314<!-- YAML
1415added: v9.9.0
1516changes:
@@ -138,6 +139,7 @@ Indicates the failure of an assertion. All errors thrown by the `assert` module
138139will be instances of the ` AssertionError ` class.
139140
140141### ` new assert.AssertionError(options) `
142+
141143<!-- YAML
142144added: v0.1.21
143145-->
@@ -216,6 +218,7 @@ try {
216218```
217219
218220## Class: ` assert.CallTracker `
221+
219222<!-- YAML
220223added:
221224 - v14.2.0
@@ -227,6 +230,7 @@ added:
227230This feature is currently experimental and behavior might still change.
228231
229232### ` new assert.CallTracker() `
233+
230234<!-- YAML
231235added:
232236 - v14.2.0
@@ -278,6 +282,7 @@ process.on('exit', () => {
278282```
279283
280284### ` tracker.calls([fn][, exact]) `
285+
281286<!-- YAML
282287added:
283288 - v14.2.0
@@ -320,6 +325,7 @@ const callsfunc = tracker.calls(func);
320325```
321326
322327### ` tracker.report() `
328+
323329<!-- YAML
324330added:
325331 - v14.2.0
@@ -396,6 +402,7 @@ tracker.report();
396402```
397403
398404### ` tracker.verify() `
405+
399406<!-- YAML
400407added:
401408 - v14.2.0
@@ -443,6 +450,7 @@ tracker.verify();
443450```
444451
445452## ` assert(value[, message]) `
453+
446454<!-- YAML
447455added: v0.5.9
448456-->
@@ -453,6 +461,7 @@ added: v0.5.9
453461An alias of [ ` assert.ok() ` ] [ ] .
454462
455463## ` assert.deepEqual(actual, expected[, message]) `
464+
456465<!-- YAML
457466added: v0.1.21
458467changes:
@@ -629,6 +638,7 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the
629638[ ` AssertionError ` ] [ ] .
630639
631640## ` assert.deepStrictEqual(actual, expected[, message]) `
641+
632642<!-- YAML
633643added: v1.2.0
634644changes:
@@ -879,6 +889,7 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the
879889` AssertionError ` .
880890
881891## ` assert.doesNotMatch(string, regexp[, message]) `
892+
882893<!-- YAML
883894added:
884895 - v13.6.0
@@ -929,6 +940,7 @@ instance of an [`Error`][] then it will be thrown instead of the
929940[ ` AssertionError ` ] [ ] .
930941
931942## ` assert.doesNotReject(asyncFn[, error][, message]) `
943+
932944<!-- YAML
933945added: v10.0.0
934946-->
@@ -1001,6 +1013,7 @@ assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
10011013```
10021014
10031015## ` assert.doesNotThrow(fn[, error][, message]) `
1016+
10041017<!-- YAML
10051018added: v0.1.21
10061019changes:
@@ -1117,6 +1130,7 @@ assert.doesNotThrow(
11171130```
11181131
11191132## ` assert.equal(actual, expected[, message]) `
1133+
11201134<!-- YAML
11211135added: v0.1.21
11221136changes:
@@ -1187,6 +1201,7 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the
11871201` AssertionError ` .
11881202
11891203## ` assert.fail([message]) `
1204+
11901205<!-- YAML
11911206added: v0.1.21
11921207-->
@@ -1227,6 +1242,7 @@ Using `assert.fail()` with more than two arguments is possible but deprecated.
12271242See below for further details.
12281243
12291244## ` assert.fail(actual, expected[, message[, operator[, stackStartFn]]]) `
1245+
12301246<!-- YAML
12311247added: v0.1.21
12321248changes:
@@ -1324,6 +1340,7 @@ suppressFrame();
13241340```
13251341
13261342## ` assert.ifError(value) `
1343+
13271344<!-- YAML
13281345added: v0.1.97
13291346changes:
@@ -1397,6 +1414,7 @@ let err;
13971414```
13981415
13991416## ` assert.match(string, regexp[, message]) `
1417+
14001418<!-- YAML
14011419added:
14021420 - v13.6.0
@@ -1447,6 +1465,7 @@ instance of an [`Error`][] then it will be thrown instead of the
14471465[ ` AssertionError ` ] [ ] .
14481466
14491467## ` assert.notDeepEqual(actual, expected[, message]) `
1468+
14501469<!-- YAML
14511470added: v0.1.21
14521471changes:
@@ -1570,6 +1589,7 @@ If the values are deeply equal, an [`AssertionError`][] is thrown with a
15701589instead of the ` AssertionError ` .
15711590
15721591## ` assert.notDeepStrictEqual(actual, expected[, message]) `
1592+
15731593<!-- YAML
15741594added: v1.2.0
15751595changes:
@@ -1629,6 +1649,7 @@ the `message` parameter is an instance of an [`Error`][] then it will be thrown
16291649instead of the [ ` AssertionError ` ] [ ] .
16301650
16311651## ` assert.notEqual(actual, expected[, message]) `
1652+
16321653<!-- YAML
16331654added: v0.1.21
16341655changes:
@@ -1693,6 +1714,7 @@ parameter is an instance of an [`Error`][] then it will be thrown instead of the
16931714` AssertionError ` .
16941715
16951716## ` assert.notStrictEqual(actual, expected[, message]) `
1717+
16961718<!-- YAML
16971719added: v0.1.21
16981720changes:
@@ -1745,6 +1767,7 @@ If the values are strictly equal, an [`AssertionError`][] is thrown with a
17451767instead of the ` AssertionError ` .
17461768
17471769## ` assert.ok(value[, message]) `
1770+
17481771<!-- YAML
17491772added: v0.1.21
17501773changes:
@@ -1862,6 +1885,7 @@ assert(0);
18621885```
18631886
18641887## ` assert.rejects(asyncFn[, error][, message]) `
1888+
18651889<!-- YAML
18661890added: v10.0.0
18671891-->
@@ -1982,6 +2006,7 @@ example in [`assert.throws()`][] carefully if using a string as the second
19822006argument gets considered.
19832007
19842008## ` assert.strictEqual(actual, expected[, message]) `
2009+
19852010<!-- YAML
19862011added: v0.1.21
19872012changes:
@@ -2060,6 +2085,7 @@ If the values are not strictly equal, an [`AssertionError`][] is thrown with a
20602085instead of the [ ` AssertionError ` ] [ ] .
20612086
20622087## ` assert.throws(fn[, error][, message]) `
2088+
20632089<!-- YAML
20642090added: v0.1.21
20652091changes:
0 commit comments