Skip to content

Commit

Permalink
fix: add rejects to the polymatherror check to make test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Wiebe committed Oct 9, 2019
1 parent 17bc13b commit 90b1ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/procedures/__tests__/ApproveErc20.ts
Expand Up @@ -125,7 +125,7 @@ describe('ApproveErc20', () => {
// Instantiate ApproveErc20
target = new ApproveErc20(params1, contextMock.getMockInstance());
// Real call
expect(await target.prepareTransactions()).toThrow(
expect(target.prepareTransactions()).rejects.toThrow(
new PolymathError({
code: ErrorCode.ProcedureValidationError,
message: 'Not enough funds',
Expand Down

0 comments on commit 90b1ee0

Please sign in to comment.