We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7f9cf2 commit bf09617Copy full SHA for bf09617
lib/getenv.js
@@ -3,7 +3,7 @@ function _value(varName, fallback) {
3
if (value === undefined) {
4
if (fallback === undefined) {
5
throw new Error('GetEnv.Nonexistent: ' + varName + ' does not exist ' +
6
- 'and now fallback value provided.');
+ 'and no fallback value provided.');
7
}
8
return '' + fallback;
9
test/getenv.js
@@ -2,7 +2,7 @@ var assert = require('assert');
2
var getenv = require('../lib/getenv');
-//Setting getenv vars for testing
+// Setting env vars for testing
process.env.TEST_GETENV_EMPTY_STRING = '';
process.env.TEST_GETENV_STRING = 'This is a string.';
process.env.TEST_GETENV_INT1 = '10';
0 commit comments