aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test/subscription_test.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-06 14:03:14 +0800
committerFabio Berger <me@fabioberger.com>2018-04-06 14:03:14 +0800
commit24454938e51e40ae74809f15bd1f612c69c218ec (patch)
tree706a1a738d3e0a172c62343c0dfb5bad39163d9f /packages/0x.js/test/subscription_test.ts
parent89a72ebf0dbff606d511ae51bfee7ffc0a5df18f (diff)
downloaddexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar
dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.gz
dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.bz2
dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.lz
dexon-sol-tools-24454938e51e40ae74809f15bd1f612c69c218ec.tar.xz
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/subscription_test.ts')
-rw-r--r--packages/0x.js/test/subscription_test.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/0x.js/test/subscription_test.ts b/packages/0x.js/test/subscription_test.ts
index 9b4751287..ed4f838c0 100644
--- a/packages/0x.js/test/subscription_test.ts
+++ b/packages/0x.js/test/subscription_test.ts
@@ -3,7 +3,6 @@ import { BigNumber } from '@0xproject/utils';
import * as _ from 'lodash';
import 'mocha';
import * as Sinon from 'sinon';
-import * as Web3 from 'web3';
import { ApprovalContractEventArgs, DecodedLogEvent, Token, TokenEvents, ZeroEx } from '../src';
import { DoneCallback } from '../src/types';
@@ -11,7 +10,7 @@ import { DoneCallback } from '../src/types';
import { chaiSetup } from './utils/chai_setup';
import { constants } from './utils/constants';
import { assertNodeCallbackError } from './utils/report_callback_errors';
-import { web3, web3Wrapper } from './utils/web3_wrapper';
+import { provider, web3Wrapper } from './utils/web3_wrapper';
chaiSetup.configure();
const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper);
@@ -26,7 +25,7 @@ describe('SubscriptionTest', () => {
networkId: constants.TESTRPC_NETWORK_ID,
};
before(async () => {
- zeroEx = new ZeroEx(web3.currentProvider, config);
+ zeroEx = new ZeroEx(provider, config);
userAddresses = await zeroEx.getAvailableAddressesAsync();
tokens = await zeroEx.tokenRegistry.getTokensAsync();
coinbase = userAddresses[0];