mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
This improves the error messages for: - assert.notDeepStrictEqual - assert.deepStrictEqual - assert.notStrictEqual - assert.strictEqual Those will now always use the same error message as used in the strict mode. PR-URL: https://github.com/nodejs/node/pull/19467 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
21 lines
329 B
Plaintext
21 lines
329 B
Plaintext
assert.js:*
|
|
throw new AssertionError(obj);
|
|
^
|
|
|
|
AssertionError [ERR_ASSERTION]: Input A expected to strictly deep-equal input B:
|
|
+ expected - actual
|
|
|
|
- Comparison {}
|
|
+ Comparison {
|
|
+ bar: true
|
|
+ }
|
|
at Object.<anonymous> (*assert_throws_stack.js:*:*)
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|
|
at *
|