From c57458a50d41fa6cf419711d42e0b8d2e140824d Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Fri, 10 Jun 2022 13:45:15 +0200 Subject: [PATCH] fix recoverPublicKey test --- packages/status-js/src/utils/recover-public-key.test.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/status-js/src/utils/recover-public-key.test.ts b/packages/status-js/src/utils/recover-public-key.test.ts index a7727e35..4aed0978 100644 --- a/packages/status-js/src/utils/recover-public-key.test.ts +++ b/packages/status-js/src/utils/recover-public-key.test.ts @@ -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"`) }) })