From c77eee63cd6ef85221319e4161e3263355b43f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 20 Dec 2024 08:23:19 +0100 Subject: [PATCH] test: adapt assert tests to stack trace changes --- test/message/assert_throws_stack.out | 2 +- test/message/internal_assert_fail.out | 2 +- test/parallel/test-fs-promises.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/message/assert_throws_stack.out b/test/message/assert_throws_stack.out index b1f3ea2108b..897ddf36a04 100644 --- a/test/message/assert_throws_stack.out +++ b/test/message/assert_throws_stack.out @@ -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. (*assert_throws_stack.js:*:*) at * at * diff --git a/test/message/internal_assert_fail.out b/test/message/internal_assert_fail.out index 9fc86673262..5f1026791f3 100644 --- a/test/message/internal_assert_fail.out +++ b/test/message/internal_assert_fail.out @@ -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 * diff --git a/test/parallel/test-fs-promises.js b/test/parallel/test-fs-promises.js index d28af0f4833..796ad3224c4 100644 --- a/test/parallel/test-fs-promises.js +++ b/test/parallel/test-fs-promises.js @@ -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());