diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-06 07:45:37 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-07 03:41:14 +0800 |
commit | ba6806df5d2d4b31c125a0c58cc6cd65bf555933 (patch) | |
tree | 2519d43d70f8f7d6c610bb2de51a17f37f15c9aa /packages/contracts/test | |
parent | fe121012784e0f1ed844c3ce6190e2d5b258b55e (diff) | |
download | dexon-sol-tools-ba6806df5d2d4b31c125a0c58cc6cd65bf555933.tar dexon-sol-tools-ba6806df5d2d4b31c125a0c58cc6cd65bf555933.tar.gz dexon-sol-tools-ba6806df5d2d4b31c125a0c58cc6cd65bf555933.tar.bz2 dexon-sol-tools-ba6806df5d2d4b31c125a0c58cc6cd65bf555933.tar.lz dexon-sol-tools-ba6806df5d2d4b31c125a0c58cc6cd65bf555933.tar.xz dexon-sol-tools-ba6806df5d2d4b31c125a0c58cc6cd65bf555933.tar.zst dexon-sol-tools-ba6806df5d2d4b31c125a0c58cc6cd65bf555933.zip |
Fix linter errors
Diffstat (limited to 'packages/contracts/test')
-rw-r--r-- | packages/contracts/test/exchange/core.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/contracts/test/exchange/core.ts b/packages/contracts/test/exchange/core.ts index 64221b63d..b44b8a344 100644 --- a/packages/contracts/test/exchange/core.ts +++ b/packages/contracts/test/exchange/core.ts @@ -472,7 +472,6 @@ describe('Exchange core', () => { signedOrder = orderFactory.newSignedOrder({ takerAssetAmount: Web3Wrapper.toBaseUnitAmount(new BigNumber(100000), 18), }); - return expectRevertOrAlwaysFailingTransaction(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)); }); @@ -483,10 +482,7 @@ describe('Exchange core', () => { }), constants.AWAIT_TRANSACTION_MINED_MS, ); - // HACK: `rejectWith` returns a "promise-like" type, but not an actual "Promise", so TSLint - // complains, even though we do need to `await` it. So we disable the TSLint error below. - // tslint:disable-next-line:await-promise - await expectRevertOrAlwaysFailingTransaction(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)); + return expectRevertOrAlwaysFailingTransaction(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)); }); it('should throw if taker allowances are too low to fill order', async () => { @@ -496,7 +492,7 @@ describe('Exchange core', () => { }), constants.AWAIT_TRANSACTION_MINED_MS, ); - await expectRevertOrAlwaysFailingTransaction(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)); + return expectRevertOrAlwaysFailingTransaction(exchangeWrapper.fillOrderAsync(signedOrder, takerAddress)); }); it('should throw if an order is expired', async () => { |