aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test/event_watcher_test.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-04 15:31:57 +0800
committerFabio Berger <me@fabioberger.com>2018-04-04 15:31:57 +0800
commit43e07e7ce3dd61af8048c20aa2355010f0c72c22 (patch)
tree84da5a773b83e1c5c452ccbd8fb22342f9d28c84 /packages/0x.js/test/event_watcher_test.ts
parent5e4e27fed5b9b7c889e6e6e1805377b9eff31a3a (diff)
downloaddexon-0x-contracts-43e07e7ce3dd61af8048c20aa2355010f0c72c22.tar
dexon-0x-contracts-43e07e7ce3dd61af8048c20aa2355010f0c72c22.tar.gz
dexon-0x-contracts-43e07e7ce3dd61af8048c20aa2355010f0c72c22.tar.bz2
dexon-0x-contracts-43e07e7ce3dd61af8048c20aa2355010f0c72c22.tar.lz
dexon-0x-contracts-43e07e7ce3dd61af8048c20aa2355010f0c72c22.tar.xz
dexon-0x-contracts-43e07e7ce3dd61af8048c20aa2355010f0c72c22.tar.zst
dexon-0x-contracts-43e07e7ce3dd61af8048c20aa2355010f0c72c22.zip
Update 0x.js to run tests against in-process ganache
Diffstat (limited to 'packages/0x.js/test/event_watcher_test.ts')
-rw-r--r--packages/0x.js/test/event_watcher_test.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/0x.js/test/event_watcher_test.ts b/packages/0x.js/test/event_watcher_test.ts
index 2fa6c0580..269cd5bdb 100644
--- a/packages/0x.js/test/event_watcher_test.ts
+++ b/packages/0x.js/test/event_watcher_test.ts
@@ -13,12 +13,12 @@ import { DoneCallback } from '../src/types';
import { chaiSetup } from './utils/chai_setup';
import { reportNodeCallbackErrors } from './utils/report_callback_errors';
+import { web3 } from './utils/web3_wrapper';
chaiSetup.configure();
const expect = chai.expect;
describe('EventWatcher', () => {
- let web3: Web3;
let stubs: Sinon.SinonStub[] = [];
let eventWatcher: EventWatcher;
let web3Wrapper: Web3Wrapper;
@@ -53,7 +53,6 @@ describe('EventWatcher', () => {
transactionIndex: 0,
};
before(async () => {
- web3 = web3Factory.create();
const pollingIntervalMs = 10;
web3Wrapper = new Web3Wrapper(web3.currentProvider);
eventWatcher = new EventWatcher(web3Wrapper, pollingIntervalMs);