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 a7727e3..4aed097 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"`) }) })