aboutsummaryrefslogtreecommitdiffstats
path: root/test/web3_trapper_test.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-07 06:41:27 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-07 06:41:27 +0800
commit21cb428b38f0ad518db68f45f45a922f7aa6c7fd (patch)
treee27485ff269c4978b8882bb0564f6d3a3881588e /test/web3_trapper_test.ts
parentde76ed478f94ace96ac88dffa7c41b8d77cb18d1 (diff)
downloaddexon-sol-tools-21cb428b38f0ad518db68f45f45a922f7aa6c7fd.tar
dexon-sol-tools-21cb428b38f0ad518db68f45f45a922f7aa6c7fd.tar.gz
dexon-sol-tools-21cb428b38f0ad518db68f45f45a922f7aa6c7fd.tar.bz2
dexon-sol-tools-21cb428b38f0ad518db68f45f45a922f7aa6c7fd.tar.lz
dexon-sol-tools-21cb428b38f0ad518db68f45f45a922f7aa6c7fd.tar.xz
dexon-sol-tools-21cb428b38f0ad518db68f45f45a922f7aa6c7fd.tar.zst
dexon-sol-tools-21cb428b38f0ad518db68f45f45a922f7aa6c7fd.zip
Rename RPC_NETWORK_ID to TESTRPC_NETWORK_ID
Diffstat (limited to 'test/web3_trapper_test.ts')
-rw-r--r--test/web3_trapper_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web3_trapper_test.ts b/test/web3_trapper_test.ts
index 69c04617b..1989bd4bc 100644
--- a/test/web3_trapper_test.ts
+++ b/test/web3_trapper_test.ts
@@ -14,13 +14,13 @@ describe('Web3Wrapper', () => {
const web3Wrapper = (new ZeroEx(web3Provider) as any)._web3Wrapper as Web3Wrapper;
expect((web3Wrapper as any).networkIdIfExists).to.be.undefined();
const networkId = await web3Wrapper.getNetworkIdIfExistsAsync();
- expect((web3Wrapper as any).networkIdIfExists).to.be.equal(constants.RPC_NETWORK_ID);
+ 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();
- expect((web3Wrapper as any).networkIdIfExists).to.be.equal(constants.RPC_NETWORK_ID);
+ expect((web3Wrapper as any).networkIdIfExists).to.be.equal(constants.TESTRPC_NETWORK_ID);
const newProvider = web3Factory.create().currentProvider;
web3Wrapper.setProvider(newProvider);
expect((web3Wrapper as any).networkIdIfExists).to.be.undefined();