From ffb07ab684ae52fef94e75815b25513accb97ee2 Mon Sep 17 00:00:00 2001 From: Raul Glogovetan Date: Thu, 11 Jul 2019 23:57:02 +0300 Subject: [PATCH] Fix: `purser-metamask` test throw on message cancel --- .../tests/purser-metamask/staticMethods/signMessage.test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/tests/purser-metamask/staticMethods/signMessage.test.js b/modules/tests/purser-metamask/staticMethods/signMessage.test.js index d0a81afb..757304d8 100644 --- a/modules/tests/purser-metamask/staticMethods/signMessage.test.js +++ b/modules/tests/purser-metamask/staticMethods/signMessage.test.js @@ -184,8 +184,7 @@ describe('`Metamask` Wallet Module Static Methods', () => { mockedMessageSignature, ), ); - expect(() => signMessage(mockedArgumentsObject)).not.toThrow(); - expect(warning).toHaveBeenCalled(); + expect(signMessage(mockedArgumentsObject)).rejects.toThrow(); }); }); });