diff options
author | Fabio Berger <me@fabioberger.com> | 2017-06-03 00:46:47 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-06-03 00:46:47 +0800 |
commit | 3fad55d118b6a2f8f44ba5dec7fdae276c806eb3 (patch) | |
tree | ac53dfb35344c644096f574802eb64eab5955f90 /test/exchange_wrapper_test.ts | |
parent | 45c4f203dff813ba25c04a3c49f0b7e3ad0f2494 (diff) | |
download | dexon-sol-tools-3fad55d118b6a2f8f44ba5dec7fdae276c806eb3.tar dexon-sol-tools-3fad55d118b6a2f8f44ba5dec7fdae276c806eb3.tar.gz dexon-sol-tools-3fad55d118b6a2f8f44ba5dec7fdae276c806eb3.tar.bz2 dexon-sol-tools-3fad55d118b6a2f8f44ba5dec7fdae276c806eb3.tar.lz dexon-sol-tools-3fad55d118b6a2f8f44ba5dec7fdae276c806eb3.tar.xz dexon-sol-tools-3fad55d118b6a2f8f44ba5dec7fdae276c806eb3.tar.zst dexon-sol-tools-3fad55d118b6a2f8f44ba5dec7fdae276c806eb3.zip |
Fix undefined web3 issue
Diffstat (limited to 'test/exchange_wrapper_test.ts')
-rw-r--r-- | test/exchange_wrapper_test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/exchange_wrapper_test.ts b/test/exchange_wrapper_test.ts index 3935ebc89..6327ef004 100644 --- a/test/exchange_wrapper_test.ts +++ b/test/exchange_wrapper_test.ts @@ -19,13 +19,13 @@ const expect = chai.expect; const blockchainLifecycle = new BlockchainLifecycle(); describe('ExchangeWrapper', () => { + let web3: Web3; let zeroEx: ZeroEx; let userAddresses: string[]; - let web3: Web3; before(async () => { + web3 = web3Factory.create(); zeroEx = new ZeroEx(web3); userAddresses = await promisify(web3.eth.getAccounts)(); - web3 = web3Factory.create(); }); beforeEach(async () => { await blockchainLifecycle.startAsync(); |