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/) }) })