Skip to content

Commit 90b1ee0

Browse files
author
Victor Wiebe
committed
fix: add rejects to the polymatherror check to make test pass
1 parent 17bc13b commit 90b1ee0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/procedures/__tests__/ApproveErc20.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('ApproveErc20', () => {
125125
// Instantiate ApproveErc20
126126
target = new ApproveErc20(params1, contextMock.getMockInstance());
127127
// Real call
128-
expect(await target.prepareTransactions()).toThrow(
128+
expect(target.prepareTransactions()).rejects.toThrow(
129129
new PolymathError({
130130
code: ErrorCode.ProcedureValidationError,
131131
message: 'Not enough funds',

0 commit comments

Comments
 (0)