From 21cb428b38f0ad518db68f45f45a922f7aa6c7fd Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Thu, 6 Jul 2017 15:41:27 -0700 Subject: Rename RPC_NETWORK_ID to TESTRPC_NETWORK_ID --- test/utils/constants.ts | 2 +- test/web3_trapper_test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/utils/constants.ts b/test/utils/constants.ts index 2e9a84e64..b677d7361 100644 --- a/test/utils/constants.ts +++ b/test/utils/constants.ts @@ -2,6 +2,6 @@ export const constants = { NULL_ADDRESS: '0x0000000000000000000000000000000000000000', RPC_HOST: 'localhost', RPC_PORT: 8545, - RPC_NETWORK_ID: 50, + TESTRPC_NETWORK_ID: 50, KOVAN_RPC_URL: 'https://kovan.0xproject.com', }; 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(); -- cgit v1.2.3