@@ -104,7 +104,7 @@ more on color support in terminal environments, read the tty
104
104
105
105
## Legacy assertion mode
106
106
107
- Legacy assertion mode uses the ` == ` operator in:
107
+ Legacy assertion mode uses the [ ` == ` operator] [ ] in:
108
108
109
109
* [ ` assert.deepEqual() ` ] [ ]
110
110
* [ ` assert.equal() ` ] [ ]
@@ -519,7 +519,7 @@ are also recursively evaluated by the following rules.
519
519
520
520
### Comparison details
521
521
522
- * Primitive values are compared with the ` == ` operator,
522
+ * Primitive values are compared with the [ ` == ` operator] [ ] ,
523
523
with the exception of ` NaN ` . It is treated as being identical in case
524
524
both sides are ` NaN ` .
525
525
* [ Type tags] [ Object.prototype.toString() ] of objects should be the same.
@@ -537,7 +537,7 @@ are also recursively evaluated by the following rules.
537
537
* [ ` WeakMap ` ] [ ] and [ ` WeakSet ` ] [ ] comparison does not rely on their values.
538
538
539
539
The following example does not throw an [ ` AssertionError ` ] [ ] because the
540
- primitives are compared using the ` == ` operator.
540
+ primitives are compared using the [ ` == ` operator] [ ] .
541
541
542
542
``` mjs
543
543
import assert from ' assert' ;
@@ -1152,7 +1152,7 @@ An alias of [`assert.strictEqual()`][].
1152
1152
> Stability: 3 - Legacy: Use [ ` assert.strictEqual() ` ] [ ] instead.
1153
1153
1154
1154
Tests shallow, coercive equality between the ` actual ` and ` expected ` parameters
1155
- using the ` == ` operator. ` NaN ` is specially handled
1155
+ using the [ ` == ` operator] [ ] . ` NaN ` is specially handled
1156
1156
and treated as being identical if both sides are ` NaN ` .
1157
1157
1158
1158
``` mjs
@@ -1666,9 +1666,8 @@ An alias of [`assert.notStrictEqual()`][].
1666
1666
1667
1667
> Stability: 3 - Legacy: Use [ ` assert.notStrictEqual() ` ] [ ] instead.
1668
1668
1669
- Tests shallow, coercive inequality with the
1670
- ` != ` operator. ` NaN ` is specially handled and treated as being identical if
1671
- sides are ` NaN ` .
1669
+ Tests shallow, coercive inequality with the [ ` != ` operator] [ ] . ` NaN ` is
1670
+ specially handled and treated as being identical if both sides are ` NaN ` .
1672
1671
1673
1672
``` mjs
1674
1673
import assert from ' assert' ;
@@ -2431,6 +2430,8 @@ argument.
2431
2430
[ Object.prototype.toString() ] : https://tc39.github.io/ecma262/#sec-object.prototype.tostring
2432
2431
[ SameValue Comparison ] : https://tc39.github.io/ecma262/#sec-samevalue
2433
2432
[ Strict Equality Comparison ] : https://tc39.github.io/ecma262/#sec-strict-equality-comparison
2433
+ [ `!=` operator ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality
2434
+ [ `==` operator ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality
2434
2435
[ `AssertionError` ] : #class-assertassertionerror
2435
2436
[ `CallTracker` ] : #class-assertcalltracker
2436
2437
[ `Class` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
0 commit comments