From 843a5fd550eebf16d46eeedc8fedbe97bef97b3e Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 25 Oct 2023 14:29:14 +0200 Subject: [PATCH] chore: make the unit test more robust --- test/unit-tests/utils/object.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit-tests/utils/object.test.js b/test/unit-tests/utils/object.test.js index 1bf1422ac..098ff6302 100644 --- a/test/unit-tests/utils/object.test.js +++ b/test/unit-tests/utils/object.test.js @@ -79,8 +79,8 @@ describe('object', function () { }) it('should throw an error in case of an unsupported type', function () { - assert.throws(function () { clone(/a regexp/) }, /Cannot clone: unknown type of value \(value: \/a regexp\/\)/) - assert.throws(function () { clone(() => 42) }, /Cannot clone: unknown type of value \(value: \(\) => 42\)/) + assert.throws(function () { clone(/a regexp/) }, /Cannot clone: unknown type of value/) + assert.throws(function () { clone(() => 42) }, /Cannot clone: unknown type of value/) }) })