forked from coop-cloud-mirrors/godotenv
Don't hide line parsing errors
This commit is contained in:
@ -278,3 +278,11 @@ func TestErrorReadDirectory(t *testing.T) {
|
||||
t.Errorf("Expected error, got %v", envMap)
|
||||
}
|
||||
}
|
||||
|
||||
func TestErrorParsing(t *testing.T) {
|
||||
envFileName := "fixtures/invalid1.env"
|
||||
envMap, err := Read(envFileName)
|
||||
if err == nil {
|
||||
t.Errorf("Expected error, got %v", envMap)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user