mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
chore: make the unit test more robust
This commit is contained in:
parent
0222ff7aa9
commit
843a5fd550
@ -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/)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user