diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-23 01:53:04 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:13:36 +0800 |
commit | 4fe28ec53c4e84544c3c21853dff57c4c6a4e45d (patch) | |
tree | 4b44732136d006aa550bef0f8c4c60a980e18771 /packages/0x.js/test/0x.js_test.ts | |
parent | efe8e07854ac5527725350e871dab370d022ae01 (diff) | |
download | dexon-0x-contracts-4fe28ec53c4e84544c3c21853dff57c4c6a4e45d.tar.gz dexon-0x-contracts-4fe28ec53c4e84544c3c21853dff57c4c6a4e45d.tar.zst dexon-0x-contracts-4fe28ec53c4e84544c3c21853dff57c4c6a4e45d.zip |
Make zeroEx.exchange.getContractAddress non-async
Diffstat (limited to 'packages/0x.js/test/0x.js_test.ts')
-rw-r--r-- | packages/0x.js/test/0x.js_test.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/0x.js/test/0x.js_test.ts b/packages/0x.js/test/0x.js_test.ts index 94387e740..95a8b027d 100644 --- a/packages/0x.js/test/0x.js_test.ts +++ b/packages/0x.js/test/0x.js_test.ts @@ -240,8 +240,7 @@ describe('ZeroEx library', () => { networkId: constants.TESTRPC_NETWORK_ID, }; const zeroExWithWrongExchangeAddress = new ZeroEx(web3.currentProvider, zeroExConfig); - return expect(zeroExWithWrongExchangeAddress.exchange.getContractAddressAsync()) - .to.be.rejectedWith(ZeroExError.ContractDoesNotExist); + expect(zeroExWithWrongExchangeAddress.exchange.getContractAddress()).to.be.equal(ZeroEx.NULL_ADDRESS); }); it('allows to specify ether token contract address', async () => { const zeroExConfig = { |