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