diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-22 07:51:43 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-05-22 07:52:49 +0800 |
commit | 4fa57f55e640d94099a9047cb23b5a003dc69068 (patch) | |
tree | a1c278a224de5870cee0fbfef0778a33977269a0 /packages/contracts/test/exchange | |
parent | 2c496a92adaef4132f6b0a135e61bad7b26b18bd (diff) | |
download | dexon-sol-tools-4fa57f55e640d94099a9047cb23b5a003dc69068.tar.gz dexon-sol-tools-4fa57f55e640d94099a9047cb23b5a003dc69068.tar.zst dexon-sol-tools-4fa57f55e640d94099a9047cb23b5a003dc69068.zip |
Fix some unhandled promise rejections
Diffstat (limited to 'packages/contracts/test/exchange')
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index 3b40ed652..1edd44aff 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -538,7 +538,9 @@ describe('Exchange core', () => { }), constants.AWAIT_TRANSACTION_MINED_MS, ); - expect(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)).to.be.rejectedWith(constants.REVERT); + await expect(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)).to.be.rejectedWith( + constants.REVERT, + ); await web3Wrapper.awaitTransactionMinedAsync( await erc20TokenA.approve.sendTransactionAsync(erc20Proxy.address, constants.INITIAL_ERC20_ALLOWANCE, { from: makerAddress, @@ -554,7 +556,9 @@ describe('Exchange core', () => { }), constants.AWAIT_TRANSACTION_MINED_MS, ); - expect(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)).to.be.rejectedWith(constants.REVERT); + await expect(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)).to.be.rejectedWith( + constants.REVERT, + ); await web3Wrapper.awaitTransactionMinedAsync( await erc20TokenB.approve.sendTransactionAsync(erc20Proxy.address, constants.INITIAL_ERC20_ALLOWANCE, { from: takerAddress, |