diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-02 04:08:36 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-06-07 03:39:43 +0800 |
commit | cd7cb025adeac3c499cc548456e4a8d181ab76e6 (patch) | |
tree | 549e33e32a6db16eac18021be5380c5018c38a8a | |
parent | 96da26777851cf3fcc00e8729f847ea631d023c1 (diff) | |
download | dexon-0x-contracts-cd7cb025adeac3c499cc548456e4a8d181ab76e6.tar.gz dexon-0x-contracts-cd7cb025adeac3c499cc548456e4a8d181ab76e6.tar.zst dexon-0x-contracts-cd7cb025adeac3c499cc548456e4a8d181ab76e6.zip |
Update exchange/transactions tests for Geth error messages
-rw-r--r-- | packages/contracts/test/exchange/transactions.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/contracts/test/exchange/transactions.ts b/packages/contracts/test/exchange/transactions.ts index 8cd800ee2..7970fd306 100644 --- a/packages/contracts/test/exchange/transactions.ts +++ b/packages/contracts/test/exchange/transactions.ts @@ -245,7 +245,7 @@ describe('Exchange transactions', () => { orderWithoutExchangeAddress = orderUtils.getOrderWithoutExchangeAddress(signedOrder); const takerAssetFillAmount = signedOrder.takerAssetAmount; const salt = generatePseudoRandomSalt(); - return expect( + return expectRevertOrAlwaysFailingTransaction( whitelist.fillOrderIfWhitelisted.sendTransactionAsync( orderWithoutExchangeAddress, takerAssetFillAmount, @@ -253,7 +253,7 @@ describe('Exchange transactions', () => { signedOrder.signature, { from: takerAddress }, ), - ).to.be.rejectedWith(constants.REVERT); + ); }); it('should revert if taker has not been whitelisted', async () => { @@ -265,7 +265,7 @@ describe('Exchange transactions', () => { orderWithoutExchangeAddress = orderUtils.getOrderWithoutExchangeAddress(signedOrder); const takerAssetFillAmount = signedOrder.takerAssetAmount; const salt = generatePseudoRandomSalt(); - return expect( + return expectRevertOrAlwaysFailingTransaction( whitelist.fillOrderIfWhitelisted.sendTransactionAsync( orderWithoutExchangeAddress, takerAssetFillAmount, @@ -273,7 +273,7 @@ describe('Exchange transactions', () => { signedOrder.signature, { from: takerAddress }, ), - ).to.be.rejectedWith(constants.REVERT); + ); }); it('should fill the order if maker and taker have been whitelisted', async () => { |