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
|
||||
at assert.throws.bar (*assert_throws_stack.js:*)
|
||||
at getActual (node:assert:*)
|
||||
at Function.throws (node:assert:*)
|
||||
at strict.throws (node:assert:*)
|
||||
at Object.<anonymous> (*assert_throws_stack.js:*:*)
|
||||
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.
|
||||
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 *
|
||||
at *
|
||||
|
@ -58,7 +58,7 @@ assert.strictEqual(
|
||||
code: 'ENOENT',
|
||||
name: 'Error',
|
||||
message: /^ENOENT: no such file or directory, access/,
|
||||
stack: /at async Function\.rejects/
|
||||
stack: /at async ok\.rejects/
|
||||
}
|
||||
).then(common.mustCall());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user