diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-27 10:33:49 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-27 10:44:21 +0800 |
commit | de0e436aad5d6b1c8a9425f075dbc3074b2fe31f (patch) | |
tree | 2090b3c57415106e6c4c8f5f051dbc23225d8533 /test/artifacts_test.ts | |
parent | 2c5f2210730d9c477e612fb3cb70db8d87e8545c (diff) | |
download | dexon-0x-contracts-de0e436aad5d6b1c8a9425f075dbc3074b2fe31f.tar dexon-0x-contracts-de0e436aad5d6b1c8a9425f075dbc3074b2fe31f.tar.gz dexon-0x-contracts-de0e436aad5d6b1c8a9425f075dbc3074b2fe31f.tar.bz2 dexon-0x-contracts-de0e436aad5d6b1c8a9425f075dbc3074b2fe31f.tar.lz dexon-0x-contracts-de0e436aad5d6b1c8a9425f075dbc3074b2fe31f.tar.xz dexon-0x-contracts-de0e436aad5d6b1c8a9425f075dbc3074b2fe31f.tar.zst dexon-0x-contracts-de0e436aad5d6b1c8a9425f075dbc3074b2fe31f.zip |
Allow multiple exchange versions t be functional at the same time
Diffstat (limited to 'test/artifacts_test.ts')
-rw-r--r-- | test/artifacts_test.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/artifacts_test.ts b/test/artifacts_test.ts index d71b45567..8bc110b21 100644 --- a/test/artifacts_test.ts +++ b/test/artifacts_test.ts @@ -1,9 +1,14 @@ import * as fs from 'fs'; +import * as chai from 'chai'; +import {chaiSetup} from './utils/chai_setup'; import HDWalletProvider = require('truffle-hdwallet-provider'); import {ZeroEx} from '../src'; import {web3Factory} from './utils/web3_factory'; import {constants} from './utils/constants'; +chaiSetup.configure(); +const expect = chai.expect; + // Those tests are slower cause they're talking to a remote node const TIMEOUT = 10000; @@ -22,7 +27,8 @@ describe('Artifacts', () => { await (zeroEx.token as any)._getProxyAddressAsync(); }).timeout(TIMEOUT); it('exchange contract is deployed', async () => { - await (zeroEx.exchange as any)._getExchangeContractAsync(); + const exchangeContractAddresses = await zeroEx.exchange.getAvailableContractAddressedAsync(); + expect(exchangeContractAddresses).to.have.lengthOf.above(0); }).timeout(TIMEOUT); }); }); |