aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-05-30 18:56:10 +0800
committerFabio Berger <me@fabioberger.com>2017-05-30 18:56:10 +0800
commit8561258ded12bc7d284933e61f6d052941258f40 (patch)
tree1e70754b65eff845fa2dbb0427eefbee120d3be0 /test
parenteefc8ca7ecb0543da3dad54ad1146eacb5a446f6 (diff)
downloaddexon-sol-tools-8561258ded12bc7d284933e61f6d052941258f40.tar
dexon-sol-tools-8561258ded12bc7d284933e61f6d052941258f40.tar.gz
dexon-sol-tools-8561258ded12bc7d284933e61f6d052941258f40.tar.bz2
dexon-sol-tools-8561258ded12bc7d284933e61f6d052941258f40.tar.lz
dexon-sol-tools-8561258ded12bc7d284933e61f6d052941258f40.tar.xz
dexon-sol-tools-8561258ded12bc7d284933e61f6d052941258f40.tar.zst
dexon-sol-tools-8561258ded12bc7d284933e61f6d052941258f40.zip
Also test that web3Wrapper nested under tokenRegistryWrapper has updated provider
Diffstat (limited to 'test')
-rw-r--r--test/0x.js_test.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/0x.js_test.ts b/test/0x.js_test.ts
index 041c5b433..0c2afe879 100644
--- a/test/0x.js_test.ts
+++ b/test/0x.js_test.ts
@@ -35,8 +35,10 @@ describe('ZeroEx library', () => {
// Check that all nested web3 instances return the updated provider
const nestedWeb3WrapperProvider = (zeroEx as any).web3Wrapper.getCurrentProvider();
expect((nestedWeb3WrapperProvider as any).zeroExTestId).to.be.a('number');
- const contractWrapperWeb3WrapperProvider = zeroEx.exchange.web3Wrapper.getCurrentProvider();
- expect((nestedWeb3WrapperProvider as any).zeroExTestId).to.be.a('number');
+ const exchangeWeb3WrapperProvider = zeroEx.exchange.web3Wrapper.getCurrentProvider();
+ expect((exchangeWeb3WrapperProvider as any).zeroExTestId).to.be.a('number');
+ const tokenRegistryWeb3WrapperProvider = zeroEx.tokenRegistry.web3Wrapper.getCurrentProvider();
+ expect((tokenRegistryWeb3WrapperProvider as any).zeroExTestId).to.be.a('number');
});
});
describe('#getOrderHash', () => {