@@ -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() ` ] [ ]
@@ -524,7 +524,7 @@ are also recursively evaluated by the following rules.
524
524
525
525
### Comparison details
526
526
527
- * Primitive values are compared with the ` == ` operator,
527
+ * Primitive values are compared with the [ ` == ` operator] [ ] ,
528
528
with the exception of ` NaN ` . It is treated as being identical in case
529
529
both sides are ` NaN ` .
530
530
* [ Type tags] [ Object.prototype.toString() ] of objects should be the same.
@@ -544,7 +544,7 @@ are also recursively evaluated by the following rules.
544
544
are not enumerable properties.
545
545
546
546
The following example does not throw an [ ` AssertionError ` ] [ ] because the
547
- primitives are compared using the ` == ` operator.
547
+ primitives are compared using the [ ` == ` operator] [ ] .
548
548
549
549
``` mjs
550
550
import assert from ' assert' ;
@@ -1166,7 +1166,7 @@ An alias of [`assert.strictEqual()`][].
1166
1166
> Stability: 3 - Legacy: Use [ ` assert.strictEqual() ` ] [ ] instead.
1167
1167
1168
1168
Tests shallow, coercive equality between the ` actual ` and ` expected ` parameters
1169
- using the ` == ` operator. ` NaN ` is specially handled
1169
+ using the [ ` == ` operator] [ ] . ` NaN ` is specially handled
1170
1170
and treated as being identical if both sides are ` NaN ` .
1171
1171
1172
1172
``` mjs
@@ -1684,9 +1684,8 @@ An alias of [`assert.notStrictEqual()`][].
1684
1684
1685
1685
> Stability: 3 - Legacy: Use [ ` assert.notStrictEqual() ` ] [ ] instead.
1686
1686
1687
- Tests shallow, coercive inequality with the
1688
- ` != ` operator. ` NaN ` is specially handled and treated as being identical if
1689
- sides are ` NaN ` .
1687
+ Tests shallow, coercive inequality with the [ ` != ` operator] [ ] . ` NaN ` is
1688
+ specially handled and treated as being identical if both sides are ` NaN ` .
1690
1689
1691
1690
``` mjs
1692
1691
import assert from ' assert' ;
@@ -2449,6 +2448,8 @@ argument.
2449
2448
[ Object.prototype.toString() ] : https://tc39.github.io/ecma262/#sec-object.prototype.tostring
2450
2449
[ SameValue Comparison ] : https://tc39.github.io/ecma262/#sec-samevalue
2451
2450
[ Strict Equality Comparison ] : https://tc39.github.io/ecma262/#sec-strict-equality-comparison
2451
+ [ `!=` operator ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Inequality
2452
+ [ `==` operator ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Equality
2452
2453
[ `AssertionError` ] : #class-assertassertionerror
2453
2454
[ `CallTracker` ] : #class-assertcalltracker
2454
2455
[ `Class` ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
0 commit comments