diff options
author | Greg Hysen <greg.hysen@gmail.com> | 2018-06-08 04:56:10 +0800 |
---|---|---|
committer | Greg Hysen <greg.hysen@gmail.com> | 2018-06-08 06:39:40 +0800 |
commit | 0d4ff5a916694be7cb5772bbd7d3e610522e09df (patch) | |
tree | e98c99ca45b7b16b8ec975460321a03c5c3f4b4c /packages/contracts/test/asset_proxy | |
parent | 8ace41d14473462dda297d4dd970b095e747e2b0 (diff) | |
download | dexon-0x-contracts-0d4ff5a916694be7cb5772bbd7d3e610522e09df.tar.gz dexon-0x-contracts-0d4ff5a916694be7cb5772bbd7d3e610522e09df.tar.zst dexon-0x-contracts-0d4ff5a916694be7cb5772bbd7d3e610522e09df.zip |
Updated tests to use new revert handler
Diffstat (limited to 'packages/contracts/test/asset_proxy')
-rw-r--r-- | packages/contracts/test/asset_proxy/proxies.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/contracts/test/asset_proxy/proxies.ts b/packages/contracts/test/asset_proxy/proxies.ts index 0548a2aac..ea236ab24 100644 --- a/packages/contracts/test/asset_proxy/proxies.ts +++ b/packages/contracts/test/asset_proxy/proxies.ts @@ -341,7 +341,7 @@ describe('Asset Transfer Proxies', () => { // Perform a transfer from makerAddress to takerAddress const erc20Balances = await erc20Wrapper.getBalancesAsync(); const amount = new BigNumber(1); - return expect( + return expectRevertOrAlwaysFailingTransactionAsync( erc721Proxy.transferFrom.sendTransactionAsync( encodedAssetData, makerAddress, @@ -349,7 +349,7 @@ describe('Asset Transfer Proxies', () => { amount, { from: exchangeAddress }, ), - ).to.be.rejectedWith(constants.REVERT); + ); }); it('should throw if transferring 0 amount of a token', async () => { |