Skip to content

Commit 9e0d9b6

Browse files
targosRafaelGSS
authored andcommitted
test: adapt assert tests to stack trace changes
PR-URL: #58070 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
1 parent f7406aa commit 9e0d9b6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

test/message/assert_throws_stack.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
2323
actual: Error: foo
2424
at assert.throws.bar (*assert_throws_stack.js:*)
2525
at getActual (node:assert:*)
26-
at Function.throws (node:assert:*)
26+
at strict.throws (node:assert:*)
2727
at Object.<anonymous> (*assert_throws_stack.js:*:*)
2828
at *
2929
at *

test/message/internal_assert_fail.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Error [ERR_INTERNAL_ASSERTION]: Unreachable!
66
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
77
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
88

9-
at Function.fail (node:internal/assert:*:*)
9+
at assert.fail (node:internal/assert:*:*)
1010
at * (*test*message*internal_assert_fail.js:7:8)
1111
at *
1212
at *

test/parallel/test-fs-promises.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ assert.strictEqual(
5858
code: 'ENOENT',
5959
name: 'Error',
6060
message: /^ENOENT: no such file or directory, access/,
61-
stack: /at async Function\.rejects/
61+
stack: /at async ok\.rejects/
6262
}
6363
).then(common.mustCall());
6464

0 commit comments

Comments
 (0)