Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Commit

Permalink
Fix: purser-metamask test throw on tx cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
rdig committed Jul 15, 2019
1 parent 89db45c commit c94a27e
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ describe('`Metamask` Wallet Module Static Methods', () => {
});
expect(signTransaction(mockedArgumentsObject)).rejects.toThrow();
});
test('Warns if the user cancelled signing the message', async () => {
test('Throws if the user cancelled signing the message', async () => {
/*
* Mock it locally to simulate an error
*/
Expand All @@ -225,8 +225,7 @@ describe('`Metamask` Wallet Module Static Methods', () => {
mockedTransactionHash,
),
);
expect(() => signTransaction(mockedArgumentsObject)).not.toThrow();
expect(warning).toHaveBeenCalled();
expect(signTransaction(mockedArgumentsObject)).rejects.toThrow();
});
});
});

0 comments on commit c94a27e

Please sign in to comment.