diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-06 14:03:14 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-06 14:03:14 +0800 |
commit | 24454938e51e40ae74809f15bd1f612c69c218ec (patch) | |
tree | 706a1a738d3e0a172c62343c0dfb5bad39163d9f /packages/0x.js/test/expiration_watcher_test.ts | |
parent | 89a72ebf0dbff606d511ae51bfee7ffc0a5df18f (diff) | |
download | dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.gz dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.zst dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.zip |
Move away from using web3 directly in 0x.js tests
Diffstat (limited to 'packages/0x.js/test/expiration_watcher_test.ts')
-rw-r--r-- | packages/0x.js/test/expiration_watcher_test.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/0x.js/test/expiration_watcher_test.ts b/packages/0x.js/test/expiration_watcher_test.ts index ed7a6e5e3..29b111fa3 100644 --- a/packages/0x.js/test/expiration_watcher_test.ts +++ b/packages/0x.js/test/expiration_watcher_test.ts @@ -4,7 +4,6 @@ import * as chai from 'chai'; import * as _ from 'lodash'; import 'mocha'; import * as Sinon from 'sinon'; -import * as Web3 from 'web3'; import { ZeroEx } from '../src/0x'; import { ExpirationWatcher } from '../src/order_watcher/expiration_watcher'; @@ -16,7 +15,7 @@ import { constants } from './utils/constants'; import { FillScenarios } from './utils/fill_scenarios'; import { reportNoErrorCallbackErrors } from './utils/report_callback_errors'; import { TokenUtils } from './utils/token_utils'; -import { web3, web3Wrapper } from './utils/web3_wrapper'; +import { provider, web3Wrapper } from './utils/web3_wrapper'; chaiSetup.configure(); const expect = chai.expect; @@ -44,7 +43,7 @@ describe('ExpirationWatcher', () => { const config = { networkId: constants.TESTRPC_NETWORK_ID, }; - zeroEx = new ZeroEx(web3.currentProvider, config); + zeroEx = new ZeroEx(provider, config); exchangeContractAddress = zeroEx.exchange.getContractAddress(); userAddresses = await zeroEx.getAvailableAddressesAsync(); tokens = await zeroEx.tokenRegistry.getTokensAsync(); |