Skip to content

Commit

Permalink
util: add test case for invalid bytes (fails)
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer committed Dec 10, 2023
1 parent 4ab83cc commit 3721fcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/util/test/bytes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ describe('hexToBytes', () => {
assert.throws(() => {
hexToBytes('0xinvalidhexstring')
})
assert.throws(() => {
hexToBytes('0xfz')
})
})

it('should convert prefixed hex-strings', () => {
Expand Down

0 comments on commit 3721fcc

Please sign in to comment.