diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-07-04 05:31:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-04 05:31:40 +0800 |
commit | 86c742cb11d0bb6a5ffb14275ce86be265b04cb8 (patch) | |
tree | cde0f449e90d108a3d715faf12d859487c236b6a /test/artifacts_test.ts | |
parent | 92c6144b6a7a47402770cd6c1d33db7f4cb847ec (diff) | |
parent | d4cef89587ef8ea0f7fbab1146c4524e8f588eac (diff) | |
download | dexon-sol-tools-86c742cb11d0bb6a5ffb14275ce86be265b04cb8.tar dexon-sol-tools-86c742cb11d0bb6a5ffb14275ce86be265b04cb8.tar.gz dexon-sol-tools-86c742cb11d0bb6a5ffb14275ce86be265b04cb8.tar.bz2 dexon-sol-tools-86c742cb11d0bb6a5ffb14275ce86be265b04cb8.tar.lz dexon-sol-tools-86c742cb11d0bb6a5ffb14275ce86be265b04cb8.tar.xz dexon-sol-tools-86c742cb11d0bb6a5ffb14275ce86be265b04cb8.tar.zst dexon-sol-tools-86c742cb11d0bb6a5ffb14275ce86be265b04cb8.zip |
Merge branch 'master' into wrap-log-bignumber
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..22d55a2ee 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.getAvailableContractAddressesAsync(); + expect(exchangeContractAddresses).to.have.lengthOf.above(0); }).timeout(TIMEOUT); }); }); |