diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-01 23:30:23 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-10-02 21:09:24 +0800 |
commit | 8c985eb579803692cb696ee0028bd132345cfd8e (patch) | |
tree | 95344c7355e3e75c116f620bc562c4b0306b82a5 /packages/contract-wrappers/test/erc721_wrapper_test.ts | |
parent | 3a93c8a6e08666ac6c737e1da363ee04188174a7 (diff) | |
download | dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.gz dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.bz2 dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.lz dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.xz dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.tar.zst dexon-sol-tools-8c985eb579803692cb696ee0028bd132345cfd8e.zip |
Fix linter issue
Diffstat (limited to 'packages/contract-wrappers/test/erc721_wrapper_test.ts')
-rw-r--r-- | packages/contract-wrappers/test/erc721_wrapper_test.ts | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/packages/contract-wrappers/test/erc721_wrapper_test.ts b/packages/contract-wrappers/test/erc721_wrapper_test.ts index ab6ff0984..10bac6086 100644 --- a/packages/contract-wrappers/test/erc721_wrapper_test.ts +++ b/packages/contract-wrappers/test/erc721_wrapper_test.ts @@ -229,11 +229,17 @@ describe('ERC721Wrapper', () => { it('should set the proxy approval', async () => { const tokenId = await tokenUtils.mintDummyERC721Async(tokenAddress, ownerAddress); - const approvalBeforeSet = await contractWrappers.erc721Token.isProxyApprovedAsync(tokenAddress, tokenId); - expect(approvalBeforeSet).to.be.false(); + const isProxyApprovedBeforeSet = await contractWrappers.erc721Token.isProxyApprovedAsync( + tokenAddress, + tokenId, + ); + expect(isProxyApprovedBeforeSet).to.be.false(); await contractWrappers.erc721Token.setProxyApprovalAsync(tokenAddress, tokenId); - const approvalAfterSet = await contractWrappers.erc721Token.isProxyApprovedAsync(tokenAddress, tokenId); - expect(approvalAfterSet).to.be.true(); + const isProxyApprovedAfterSet = await contractWrappers.erc721Token.isProxyApprovedAsync( + tokenAddress, + tokenId, + ); + expect(isProxyApprovedAfterSet).to.be.true(); }); }); describe('#subscribe', () => { @@ -357,7 +363,6 @@ describe('ERC721Wrapper', () => { ); contractWrappers.erc721Token.unsubscribe(subscriptionToken); - const tokenId = await tokenUtils.mintDummyERC721Async(tokenAddress, ownerAddress); const isApproved = true; await web3Wrapper.awaitTransactionSuccessAsync( await contractWrappers.erc721Token.setApprovalForAllAsync( @@ -373,15 +378,11 @@ describe('ERC721Wrapper', () => { }); }); describe('#getLogsAsync', () => { - let tokenTransferProxyAddress: string; const blockRange: BlockRange = { fromBlock: 0, toBlock: BlockParamLiteral.Latest, }; let txHash: string; - before(() => { - tokenTransferProxyAddress = contractWrappers.erc721Proxy.getContractAddress(); - }); it('should get logs with decoded args emitted by ApprovalForAll', async () => { const isApprovedForAll = true; txHash = await contractWrappers.erc721Token.setApprovalForAllAsync( |