From 6a2421c683d27b1ec5e2474341c92ae74e98644c Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 26 Jun 2018 23:17:29 +0200 Subject: Fix tests --- packages/contracts/test/asset_proxy/proxies.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'packages/contracts') diff --git a/packages/contracts/test/asset_proxy/proxies.ts b/packages/contracts/test/asset_proxy/proxies.ts index 5f4c5b597..869ba4b2a 100644 --- a/packages/contracts/test/asset_proxy/proxies.ts +++ b/packages/contracts/test/asset_proxy/proxies.ts @@ -192,7 +192,7 @@ describe('Asset Transfer Proxies', () => { }); }); - describe('batchTransferFrom', () => { + describe('batchTransferFrom ERC20', () => { it('should succesfully make multiple token transfers', async () => { const erc20Balances = await erc20Wrapper.getBalancesAsync(); @@ -443,7 +443,7 @@ describe('Asset Transfer Proxies', () => { }); }); - describe('batchTransferFrom', () => { + describe('batchTransferFrom ERC721', () => { it('should succesfully make multiple token transfers', async () => { const erc721TokensById = await erc721Wrapper.getBalancesAsync(); const [makerTokenIdA, makerTokenIdB] = erc721TokensById[makerAddress][erc721Token.address]; @@ -468,7 +468,10 @@ describe('Asset Transfer Proxies', () => { txHash, constants.AWAIT_TRANSACTION_MINED_MS, ); - expect(res.logs.length).to.equal(numTransfers); + // During an ERC721 transfer enabled by a specific token approval, + // the approval is cleared, emitting an event + const numApprovals = 2; + expect(res.logs.length).to.equal(numTransfers + numApprovals); const newOwnerMakerAssetA = await erc721Token.ownerOf.callAsync(makerTokenIdA); const newOwnerMakerAssetB = await erc721Token.ownerOf.callAsync(makerTokenIdB); -- cgit v1.2.3