fix recoverPublicKey test
This commit is contained in:
parent
13b9b7939a
commit
c57458a50d
|
@ -74,9 +74,8 @@ describe('recoverPublicKey', () => {
|
|||
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
|
||||
])
|
||||
|
||||
// TODO: use toThrowErrorMatchingInlineSnapshot
|
||||
expect(recoverPublicKey(signature, payload)).toThrow(
|
||||
'Signature must be 65 bytes long'
|
||||
)
|
||||
expect(() =>
|
||||
recoverPublicKey(signature, payload)
|
||||
).toThrowErrorMatchingInlineSnapshot(`"Signature must be 65 bytes long"`)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue