mirror of
https://github.com/status-im/dappconnect-chat-sdk.git
synced 2025-01-11 14:34:56 +00:00
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,
|
||||
])
|
||||
|
||||
// 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…
x
Reference in New Issue
Block a user