diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-23 03:37:07 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:13:37 +0800 |
commit | a38ef3655b47228c2cc949d917636a19d7e0dddc (patch) | |
tree | 5f091e4942e702f714eed23c36adfc2f98c0b003 /packages/0x.js/test/0x.js_test.ts | |
parent | c586d3e81d0b03f57924b4dc885bc97d152b09e2 (diff) | |
download | dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar.gz dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar.bz2 dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar.lz dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar.xz dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.tar.zst dexon-sol-tools-a38ef3655b47228c2cc949d917636a19d7e0dddc.zip |
Remove even more asyncs
Diffstat (limited to 'packages/0x.js/test/0x.js_test.ts')
-rw-r--r-- | packages/0x.js/test/0x.js_test.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/0x.js/test/0x.js_test.ts b/packages/0x.js/test/0x.js_test.ts index 95a8b027d..ba7a92fe4 100644 --- a/packages/0x.js/test/0x.js_test.ts +++ b/packages/0x.js/test/0x.js_test.ts @@ -223,7 +223,7 @@ describe('ZeroEx library', () => { const tokens = await zeroEx.tokenRegistry.getTokensAsync(); const tokenUtils = new TokenUtils(tokens); const zrxTokenAddress = tokenUtils.getProtocolTokenOrThrow().address; - const proxyAddress = await zeroEx.proxy.getContractAddressAsync(); + const proxyAddress = zeroEx.proxy.getContractAddress(); const txHash = await zeroEx.token.setUnlimitedProxyAllowanceAsync(zrxTokenAddress, coinbase); const txReceiptWithDecodedLogs = await zeroEx.awaitTransactionMinedAsync(txHash); const log = txReceiptWithDecodedLogs.logs[0] as LogWithDecodedArgs<ApprovalContractEventArgs>; @@ -248,8 +248,7 @@ describe('ZeroEx library', () => { networkId: constants.TESTRPC_NETWORK_ID, }; const zeroExWithWrongEtherTokenAddress = new ZeroEx(web3.currentProvider, zeroExConfig); - return expect(zeroExWithWrongEtherTokenAddress.etherToken.getContractAddressAsync()) - .to.be.rejectedWith(ZeroExError.ContractDoesNotExist); + expect(zeroExWithWrongEtherTokenAddress.etherToken.getContractAddress()).to.be.equal(ZeroEx.NULL_ADDRESS); }); it('allows to specify token registry token contract address', async () => { const zeroExConfig = { @@ -257,8 +256,8 @@ describe('ZeroEx library', () => { networkId: constants.TESTRPC_NETWORK_ID, }; const zeroExWithWrongTokenRegistryAddress = new ZeroEx(web3.currentProvider, zeroExConfig); - return expect(zeroExWithWrongTokenRegistryAddress.tokenRegistry.getContractAddressAsync()) - .to.be.rejectedWith(ZeroExError.ContractDoesNotExist); + expect(zeroExWithWrongTokenRegistryAddress.tokenRegistry.getContractAddress()) + .to.be.equal(ZeroEx.NULL_ADDRESS); }); }); }); |