test: adapt assert tests to stack trace changes
PR-URL: https://github.com/nodejs/node/pull/58070 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
This commit is contained in:
parent
4410e2bf82
commit
71fdc590b1
@ -23,7 +23,7 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
|
|||||||
actual: Error: foo
|
actual: Error: foo
|
||||||
at assert.throws.bar (*assert_throws_stack.js:*)
|
at assert.throws.bar (*assert_throws_stack.js:*)
|
||||||
at getActual (node:assert:*)
|
at getActual (node:assert:*)
|
||||||
at Function.throws (node:assert:*)
|
at strict.throws (node:assert:*)
|
||||||
at Object.<anonymous> (*assert_throws_stack.js:*:*)
|
at Object.<anonymous> (*assert_throws_stack.js:*:*)
|
||||||
at *
|
at *
|
||||||
at *
|
at *
|
||||||
|
@ -6,7 +6,7 @@ Error [ERR_INTERNAL_ASSERTION]: Unreachable!
|
|||||||
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
|
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
|
||||||
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
|
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
|
||||||
|
|
||||||
at Function.fail (node:internal/assert:*:*)
|
at assert.fail (node:internal/assert:*:*)
|
||||||
at * (*test*message*internal_assert_fail.js:7:8)
|
at * (*test*message*internal_assert_fail.js:7:8)
|
||||||
at *
|
at *
|
||||||
at *
|
at *
|
||||||
|
@ -58,7 +58,7 @@ assert.strictEqual(
|
|||||||
code: 'ENOENT',
|
code: 'ENOENT',
|
||||||
name: 'Error',
|
name: 'Error',
|
||||||
message: /^ENOENT: no such file or directory, access/,
|
message: /^ENOENT: no such file or directory, access/,
|
||||||
stack: /at async Function\.rejects/
|
stack: /at async ok\.rejects/
|
||||||
}
|
}
|
||||||
).then(common.mustCall());
|
).then(common.mustCall());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user