aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-07 06:43:35 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-07 06:43:35 +0800
commit90ddfe58a99eb241a86dff64f31263994c00ce2c (patch)
treed1094e63635f1a82333108c61a63b5ea879b17b7 /test
parent0f3f557e0b535f9ca94af9345be118e03e37ed70 (diff)
downloaddexon-0x-contracts-90ddfe58a99eb241a86dff64f31263994c00ce2c.tar
dexon-0x-contracts-90ddfe58a99eb241a86dff64f31263994c00ce2c.tar.gz
dexon-0x-contracts-90ddfe58a99eb241a86dff64f31263994c00ce2c.tar.bz2
dexon-0x-contracts-90ddfe58a99eb241a86dff64f31263994c00ce2c.tar.lz
dexon-0x-contracts-90ddfe58a99eb241a86dff64f31263994c00ce2c.tar.xz
dexon-0x-contracts-90ddfe58a99eb241a86dff64f31263994c00ce2c.tar.zst
dexon-0x-contracts-90ddfe58a99eb241a86dff64f31263994c00ce2c.zip
Rename networkId to networkIdIfExists
Diffstat (limited to 'test')
-rw-r--r--test/web3_wrapper_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web3_wrapper_test.ts b/test/web3_wrapper_test.ts
index 1989bd4bc..d1c2e8e89 100644
--- a/test/web3_wrapper_test.ts
+++ b/test/web3_wrapper_test.ts
@@ -13,13 +13,13 @@ describe('Web3Wrapper', () => {
it('caches network id requests', async () => {
const web3Wrapper = (new ZeroEx(web3Provider) as any)._web3Wrapper as Web3Wrapper;
expect((web3Wrapper as any).networkIdIfExists).to.be.undefined();
- const networkId = await web3Wrapper.getNetworkIdIfExistsAsync();
+ const networkIdIfExists = await web3Wrapper.getNetworkIdIfExistsAsync();
expect((web3Wrapper as any).networkIdIfExists).to.be.equal(constants.TESTRPC_NETWORK_ID);
});
it('invalidates network id cache on setProvider call', async () => {
const web3Wrapper = (new ZeroEx(web3Provider) as any)._web3Wrapper as Web3Wrapper;
expect((web3Wrapper as any).networkIdIfExists).to.be.undefined();
- const networkId = await web3Wrapper.getNetworkIdIfExistsAsync();
+ const networkIdIfExists = await web3Wrapper.getNetworkIdIfExistsAsync();
expect((web3Wrapper as any).networkIdIfExists).to.be.equal(constants.TESTRPC_NETWORK_ID);
const newProvider = web3Factory.create().currentProvider;
web3Wrapper.setProvider(newProvider);