From 6ff9d1a65052be172cde69a78c46f2db31b09d29 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 1 Nov 2018 14:41:06 -0700 Subject: [PATCH] refactor: rename env var --- web3.js/package.json | 2 +- web3.js/test/__mocks__/node-fetch.js | 4 ++-- web3.js/test/__mocks__/rpc-websockets.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web3.js/package.json b/web3.js/package.json index 682013d6b8..fffb5dd5ad 100644 --- a/web3.js/package.json +++ b/web3.js/package.json @@ -40,7 +40,7 @@ "doc": "esdoc; node -p '\"\\nDocumentation coverage: \" + require(\"./doc/coverage.json\").coverage'", "doc:watch": "watch 'npm run doc' . --wait=1 --ignoreDirectoryPattern=/doc/", "test": "cross-env NODE_ENV=test jest --useStderr", - "test:live": "cross-env NODE_ENV=test DOITLIVE=1 jest --useStderr", + "test:live": "cross-env NODE_ENV=test TEST_LIVE=1 jest --useStderr", "test:watch": "cross-env NODE_ENV=test jest --watch --useStderr", "test:cover": "cross-env NODE_ENV=test jest --coverage --useStderr", "codecov": "npm run test:cover && cat ./coverage/lcov.info | codecov", diff --git a/web3.js/test/__mocks__/node-fetch.js b/web3.js/test/__mocks__/node-fetch.js index 1dd6fff568..e0fdc24f8e 100644 --- a/web3.js/test/__mocks__/node-fetch.js +++ b/web3.js/test/__mocks__/node-fetch.js @@ -18,9 +18,9 @@ type RpcResponse = { export const mockRpc: Array<[string, RpcRequest, RpcResponse]> = []; -// Define DOITLIVE in the environment to test against the real full node +// Define TEST_LIVE in the environment to test against the real full node // identified by `url` instead of using the mock -export const mockRpcEnabled = !process.env.DOITLIVE; +export const mockRpcEnabled = !process.env.TEST_LIVE; let mockNotice = true; diff --git a/web3.js/test/__mocks__/rpc-websockets.js b/web3.js/test/__mocks__/rpc-websockets.js index 44e99c90ff..aef9d66c9e 100644 --- a/web3.js/test/__mocks__/rpc-websockets.js +++ b/web3.js/test/__mocks__/rpc-websockets.js @@ -1,8 +1,8 @@ import {Client as RpcWebSocketClient} from 'rpc-websockets'; -// Define DOITLIVE in the environment to test against the real full node +// Define TEST_LIVE in the environment to test against the real full node // identified by `url` instead of using the mock -export const mockRpcEnabled = !process.env.DOITLIVE; +export const mockRpcEnabled = !process.env.TEST_LIVE; let mockNotice = true;