chore: make the unit test more robust

This commit is contained in:
Jos de Jong 2023-10-25 14:29:14 +02:00
parent 0222ff7aa9
commit 843a5fd550

View File

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