diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-10 12:32:22 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-10 12:32:22 +0800 |
commit | 47f9e171fcc1e3e24c38b1bb381b8303dc8341d4 (patch) | |
tree | bb7868f5588a0b074465c164650b64ffccbe48d9 /test/event_watcher_test.ts | |
parent | a1bc18e5cf4e7c26bfce7feca0abe4e17c14db83 (diff) | |
download | dexon-sol-tools-47f9e171fcc1e3e24c38b1bb381b8303dc8341d4.tar dexon-sol-tools-47f9e171fcc1e3e24c38b1bb381b8303dc8341d4.tar.gz dexon-sol-tools-47f9e171fcc1e3e24c38b1bb381b8303dc8341d4.tar.bz2 dexon-sol-tools-47f9e171fcc1e3e24c38b1bb381b8303dc8341d4.tar.lz dexon-sol-tools-47f9e171fcc1e3e24c38b1bb381b8303dc8341d4.tar.xz dexon-sol-tools-47f9e171fcc1e3e24c38b1bb381b8303dc8341d4.tar.zst dexon-sol-tools-47f9e171fcc1e3e24c38b1bb381b8303dc8341d4.zip |
Move numConfirmations to constructor call
Diffstat (limited to 'test/event_watcher_test.ts')
-rw-r--r-- | test/event_watcher_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/event_watcher_test.ts b/test/event_watcher_test.ts index 8f3898287..36153c207 100644 --- a/test/event_watcher_test.ts +++ b/test/event_watcher_test.ts @@ -58,7 +58,7 @@ describe('EventWatcher', () => { web3 = web3Factory.create(); const pollingIntervalMs = 10; web3Wrapper = new Web3Wrapper(web3.currentProvider); - eventWatcher = new EventWatcher(web3Wrapper, pollingIntervalMs); + eventWatcher = new EventWatcher(web3Wrapper, pollingIntervalMs, numConfirmations); }); afterEach(() => { // clean up any stubs after the test has completed @@ -88,7 +88,7 @@ describe('EventWatcher', () => { done(); } }; - eventWatcher.subscribe(callback, numConfirmations); + eventWatcher.subscribe(callback); }); it('correctly computes the difference and emits only changes', (done: DoneCallback) => { const initialLogs: Web3.LogEntry[] = [logA, logB]; @@ -122,6 +122,6 @@ describe('EventWatcher', () => { done(); } }; - eventWatcher.subscribe(callback, numConfirmations); + eventWatcher.subscribe(callback); }); }); |