fix recoverPublicKey test

This commit is contained in:
Pavel Prichodko 2022-06-10 13:45:15 +02:00 committed by Felicio Mununga
parent e976c5bc1f
commit 5b7c3cbb5a
No known key found for this signature in database
GPG Key ID: 0EB8D75C775AB6F1
1 changed files with 3 additions and 4 deletions

View File

@ -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"`)
)
}) })
}) })