From bdd3d151ab8a7c277cdd7af25078fea161ead0c7 Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Tue, 10 Dec 2024 20:53:32 -0800 Subject: [PATCH] update tests --- test/js/node/assert/assert-doesNotMatch.test.cjs | 2 +- test/js/node/assert/assert-match.test.cjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/js/node/assert/assert-doesNotMatch.test.cjs b/test/js/node/assert/assert-doesNotMatch.test.cjs index 14ffd2eae22ae6..136ea095db0caf 100644 --- a/test/js/node/assert/assert-doesNotMatch.test.cjs +++ b/test/js/node/assert/assert-doesNotMatch.test.cjs @@ -6,7 +6,7 @@ test("doesNotMatch does not throw when not matching", () => { test("doesNotMatch throws when argument is not string", () => { expect(() => assert.doesNotMatch(123, /pass/)).toThrow( - 'The "actual" argument must be of type string. Received type number', + 'The "string" argument must be of type string. Received type number', ); }); diff --git a/test/js/node/assert/assert-match.test.cjs b/test/js/node/assert/assert-match.test.cjs index 4eb097e357c4bd..29f2d117ebba7c 100644 --- a/test/js/node/assert/assert-match.test.cjs +++ b/test/js/node/assert/assert-match.test.cjs @@ -5,7 +5,7 @@ test("match does not throw when matching", () => { }); test("match throws when argument is not string", () => { - expect(() => assert.match(123, /pass/)).toThrow('The "actual" argument must be of type string. Received type number'); + expect(() => assert.match(123, /pass/)).toThrow('The "string" argument must be of type string. Received type number'); }); test("match throws when not matching", () => {