@@ -15,7 +15,7 @@ lenient legacy mode.
15
15
Indicates the failure of an assertion. All errors thrown by the ` assert ` module
16
16
will be instances of the ` AssertionError ` class.
17
17
18
- ### new assert.AssertionError(options)
18
+ ### ` new assert.AssertionError(options) `
19
19
<!-- YAML
20
20
added: v0.1.21
21
21
-->
146
146
assert .deepEqual (/ a/ gi , new Date ());
147
147
```
148
148
149
- ## assert(value\ [ , message\] )
149
+ ## ` assert(value[, message]) `
150
150
<!-- YAML
151
151
added: v0.5.9
152
152
-->
@@ -156,7 +156,7 @@ added: v0.5.9
156
156
157
157
An alias of [ ` assert.ok() ` ] [ ] .
158
158
159
- ## assert.deepEqual(actual, expected\ [ , message\] )
159
+ ## ` assert.deepEqual(actual, expected[, message]) `
160
160
<!-- YAML
161
161
added: v0.1.21
162
162
changes:
@@ -271,7 +271,7 @@ parameter is undefined, a default error message is assigned. If the `message`
271
271
parameter is an instance of an [ ` Error ` ] [ ] then it will be thrown instead of the
272
272
[ ` AssertionError ` ] [ ] .
273
273
274
- ## assert.deepStrictEqual(actual, expected\ [ , message\] )
274
+ ## ` assert.deepStrictEqual(actual, expected[, message]) `
275
275
<!-- YAML
276
276
added: v1.2.0
277
277
changes:
@@ -425,7 +425,7 @@ parameter is undefined, a default error message is assigned. If the `message`
425
425
parameter is an instance of an [ ` Error ` ] [ ] then it will be thrown instead of the
426
426
` AssertionError ` .
427
427
428
- ## assert.doesNotReject(asyncFn\ [ , error\]\ [ , message\] )
428
+ ## ` assert.doesNotReject(asyncFn[, error] [, message]) `
429
429
<!-- YAML
430
430
added: v10.0.0
431
431
-->
@@ -475,7 +475,7 @@ assert.doesNotReject(Promise.reject(new TypeError('Wrong value')))
475
475
});
476
476
```
477
477
478
- ## assert.doesNotThrow(fn\ [ , error\]\ [ , message\] )
478
+ ## ` assert.doesNotThrow(fn[, error] [, message]) `
479
479
<!-- YAML
480
480
added: v0.1.21
481
481
changes:
@@ -551,7 +551,7 @@ assert.doesNotThrow(
551
551
// Throws: AssertionError: Got unwanted exception: Whoops
552
552
```
553
553
554
- ## assert.equal(actual, expected\ [ , message\] )
554
+ ## ` assert.equal(actual, expected[, message]) `
555
555
<!-- YAML
556
556
added: v0.1.21
557
557
-->
@@ -591,7 +591,7 @@ parameter is undefined, a default error message is assigned. If the `message`
591
591
parameter is an instance of an [ ` Error ` ] [ ] then it will be thrown instead of the
592
592
` AssertionError ` .
593
593
594
- ## assert.fail(\ [ message\] )
594
+ ## ` assert.fail([message]) `
595
595
<!-- YAML
596
596
added: v0.1.21
597
597
-->
@@ -618,7 +618,7 @@ assert.fail(new TypeError('need array'));
618
618
Using ` assert.fail() ` with more than two arguments is possible but deprecated.
619
619
See below for further details.
620
620
621
- ## assert.fail(actual, expected\ [ , message\ [ , operator\ [ , stackStartFn\]\]\] )
621
+ ## ` assert.fail(actual, expected[, message[, operator[, stackStartFn]]]) `
622
622
<!-- YAML
623
623
added: v0.1.21
624
624
changes:
@@ -681,7 +681,7 @@ suppressFrame();
681
681
// ...
682
682
```
683
683
684
- ## assert.ifError(value)
684
+ ## ` assert.ifError(value) `
685
685
<!-- YAML
686
686
added: v0.1.97
687
687
changes:
@@ -728,7 +728,7 @@ let err;
728
728
// at errorFrame
729
729
```
730
730
731
- ## assert.notDeepEqual(actual, expected\ [ , message\] )
731
+ ## ` assert.notDeepEqual(actual, expected[, message]) `
732
732
<!-- YAML
733
733
added: v0.1.21
734
734
changes:
@@ -802,7 +802,7 @@ If the values are deeply equal, an [`AssertionError`][] is thrown with a
802
802
` message ` parameter is an instance of an [ ` Error ` ] [ ] then it will be thrown
803
803
instead of the ` AssertionError ` .
804
804
805
- ## assert.notDeepStrictEqual(actual, expected\ [ , message\] )
805
+ ## ` assert.notDeepStrictEqual(actual, expected[, message]) `
806
806
<!-- YAML
807
807
added: v1.2.0
808
808
changes:
@@ -850,7 +850,7 @@ the `message` parameter is undefined, a default error message is assigned. If
850
850
the ` message ` parameter is an instance of an [ ` Error ` ] [ ] then it will be thrown
851
851
instead of the [ ` AssertionError ` ] [ ] .
852
852
853
- ## assert.notEqual(actual, expected\ [ , message\] )
853
+ ## ` assert.notEqual(actual, expected[, message]) `
854
854
<!-- YAML
855
855
added: v0.1.21
856
856
-->
@@ -889,7 +889,7 @@ parameter is undefined, a default error message is assigned. If the `message`
889
889
parameter is an instance of an [ ` Error ` ] [ ] then it will be thrown instead of the
890
890
` AssertionError ` .
891
891
892
- ## assert.notStrictEqual(actual, expected\ [ , message\] )
892
+ ## ` assert.notStrictEqual(actual, expected[, message]) `
893
893
<!-- YAML
894
894
added: v0.1.21
895
895
changes:
@@ -926,7 +926,7 @@ If the values are strictly equal, an [`AssertionError`][] is thrown with a
926
926
` message ` parameter is an instance of an [ ` Error ` ] [ ] then it will be thrown
927
927
instead of the ` AssertionError ` .
928
928
929
- ## assert.ok(value\ [ , message\] )
929
+ ## ` assert.ok(value[, message]) `
930
930
<!-- YAML
931
931
added: v0.1.21
932
932
changes:
@@ -994,7 +994,7 @@ assert(0);
994
994
// assert(0)
995
995
```
996
996
997
- ## assert.rejects(asyncFn\ [ , error\]\ [ , message\] )
997
+ ## ` assert.rejects(asyncFn[, error] [, message]) `
998
998
<!-- YAML
999
999
added: v10.0.0
1000
1000
-->
@@ -1053,7 +1053,7 @@ argument, then `error` is assumed to be omitted and the string will be used for
1053
1053
example in [ ` assert.throws() ` ] [ ] carefully if using a string as the second
1054
1054
argument gets considered.
1055
1055
1056
- ## assert.strictEqual(actual, expected\ [ , message\] )
1056
+ ## ` assert.strictEqual(actual, expected[, message]) `
1057
1057
<!-- YAML
1058
1058
added: v0.1.21
1059
1059
changes:
@@ -1103,7 +1103,7 @@ If the values are not strictly equal, an [`AssertionError`][] is thrown with a
1103
1103
` message ` parameter is an instance of an [ ` Error ` ] [ ] then it will be thrown
1104
1104
instead of the [ ` AssertionError ` ] [ ] .
1105
1105
1106
- ## assert.throws(fn\ [ , error\]\ [ , message\] )
1106
+ ## ` assert.throws(fn[, error] [, message]) `
1107
1107
<!-- YAML
1108
1108
added: v0.1.21
1109
1109
changes:
0 commit comments