diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-22 05:58:41 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:13:36 +0800 |
commit | 311d42626a8eb6c07e4746172b8d868920e37e6c (patch) | |
tree | f3bdfa05fb5066632bd86d2277bf4d6a10e47d70 /packages/0x.js/test/order_state_watcher_test.ts | |
parent | cbf35de4c11d5f2b538d4e8f1b98ae3d76f137c9 (diff) | |
download | dexon-sol-tools-311d42626a8eb6c07e4746172b8d868920e37e6c.tar.gz dexon-sol-tools-311d42626a8eb6c07e4746172b8d868920e37e6c.tar.zst dexon-sol-tools-311d42626a8eb6c07e4746172b8d868920e37e6c.zip |
Adjust the tests
Diffstat (limited to 'packages/0x.js/test/order_state_watcher_test.ts')
-rw-r--r-- | packages/0x.js/test/order_state_watcher_test.ts | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/0x.js/test/order_state_watcher_test.ts b/packages/0x.js/test/order_state_watcher_test.ts index 834099ef6..887fc8605 100644 --- a/packages/0x.js/test/order_state_watcher_test.ts +++ b/packages/0x.js/test/order_state_watcher_test.ts @@ -20,12 +20,12 @@ import { OrderStateInvalid, ExchangeContractErrs, } from '../src'; +import {constants} from './utils/constants'; import {TokenUtils} from './utils/token_utils'; import {FillScenarios} from './utils/fill_scenarios'; import {DoneCallback} from '../src/types'; import {BlockchainLifecycle} from './utils/blockchain_lifecycle'; import {reportCallbackErrors} from './utils/report_callback_errors'; -import {constants as constants} from './utils/constants'; const TIMEOUT_MS = 150; @@ -48,11 +48,14 @@ describe('OrderStateWatcher', () => { let taker: string; let web3Wrapper: Web3Wrapper; let signedOrder: SignedOrder; + const config = { + networkId: constants.TESTRPC_NETWORK_ID, + }; const decimals = constants.ZRX_DECIMALS; const fillableAmount = ZeroEx.toBaseUnitAmount(new BigNumber(5), decimals); before(async () => { web3 = web3Factory.create(); - zeroEx = new ZeroEx(web3.currentProvider); + zeroEx = new ZeroEx(web3.currentProvider, config); exchangeContractAddress = await zeroEx.exchange.getContractAddressAsync(); userAddresses = await zeroEx.getAvailableAddressesAsync(); [, maker, taker] = userAddresses; |