File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ Parse and load environment files (containing ENV variable exports) into Node.js
14
14
BAR=bar1
15
15
BAZ=1
16
16
QUX=
17
-
17
+ # QUUX=
18
18
```
19
19
20
20
** ` .env2 ` **
@@ -26,6 +26,7 @@ Parse and load environment files (containing ENV variable exports) into Node.js
26
26
exports BAR=bar2
27
27
exports BAZ=2
28
28
exports QUX=
29
+ # exports QUUX=
29
30
30
31
```
31
32
@@ -43,13 +44,15 @@ Parse and load environment files (containing ENV variable exports) into Node.js
43
44
assert .equal (process .env .BAR , " bar1" );
44
45
assert .equal (process .env .BAZ , " 1" );
45
46
assert .equal (process .env .QUX , " " );
47
+ assert .equal (process .env .QUUX , undefined );
46
48
47
49
// Load another ENV file - and overwrite any defined ENV variables.
48
50
env (__dirname + ' /.env2' , {overwrite: true });
49
51
assert .equal (process .env .FOO , " foo2" );
50
52
assert .equal (process .env .BAR , " bar2" );
51
53
assert .equal (process .env .BAZ , " 2" );
52
54
assert .equal (process .env .QUX , " " );
55
+ assert .equal (process .env .QUUX , undefined );
53
56
```
54
57
55
58
You can’t perform that action at this time.
0 commit comments