Skip to content

Commit

Permalink
chore: make the unit test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Oct 25, 2023
1 parent 0222ff7 commit 843a5fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit-tests/utils/object.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
})
})

Expand Down

0 comments on commit 843a5fd

Please sign in to comment.