Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit cd12726

Browse files
committed
Add failing test for override of empty var
1 parent eaf676f commit cd12726

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

godotenv_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,12 @@ func TestLoadDoesNotOverride(t *testing.T) {
100100
// ensure NO overload
101101
presets := map[string]string{
102102
"OPTION_A": "do_not_override",
103+
"OPTION_B": "",
103104
}
104105

105106
expectedValues := map[string]string{
106107
"OPTION_A": "do_not_override",
108+
"OPTION_B": "",
107109
}
108110
loadEnvAndCompareValues(t, Load, envFileName, expectedValues, presets)
109111
}

0 commit comments

Comments
 (0)