refactor: rename env var

This commit is contained in:
Michael Vines 2018-11-01 14:41:06 -07:00
parent b1e811473a
commit 6ff9d1a650
3 changed files with 5 additions and 5 deletions

View File

@ -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",

View File

@ -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;

View File

@ -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;