Skip to content

Commit c094003

Browse files
committed
Add tests for mixed case booleans
1 parent d214811 commit c094003

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/getenv.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ process.env.TEST_GETENV_FLOAT2 = '0.0';
1313
process.env.TEST_GETENV_INFINITY1 = Infinity;
1414
process.env.TEST_GETENV_INFINITY2 = -Infinity;
1515
process.env.TEST_GETENV_FALSE = 'false';
16+
process.env.TEST_GETENV_FALSE1 = 'False';
1617
process.env.TEST_GETENV_FALSE2 = 'FALSE';
1718
process.env.TEST_GETENV_TRUE = 'true';
19+
process.env.TEST_GETENV_TRUE1 = 'True';
1820
process.env.TEST_GETENV_TRUE2 = 'TRUE';
1921
process.env.TEST_GETENV_NOT_REALLY_TRUE = '1';
2022
process.env.TEST_GETENV_NOT_REALLY_FALSE = '0';
@@ -204,6 +206,10 @@ tests['getenv.bool() valid input'] = function () {
204206
varName: 'TEST_GETENV_FALSE',
205207
expected: false,
206208
},
209+
{
210+
varName: 'TEST_GETENV_FALSE1',
211+
expected: false,
212+
},
207213
{
208214
varName: 'TEST_GETENV_FALSE2',
209215
expected: false,
@@ -212,6 +218,10 @@ tests['getenv.bool() valid input'] = function () {
212218
varName: 'TEST_GETENV_TRUE',
213219
expected: true,
214220
},
221+
{
222+
varName: 'TEST_GETENV_TRUE1',
223+
expected: true,
224+
},
215225
{
216226
varName: 'TEST_GETENV_TRUE2',
217227
expected: true,

0 commit comments

Comments
 (0)