mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-09 05:07:05 +10:00
21 lines
402 B
Go
21 lines
402 B
Go
package main
|
|
|
|
import "testing"
|
|
|
|
func TestMultipleEnvironmentFiles(t *testing.T) {
|
|
envs := []string{"fixtures/envs/.env1", "fixtures/envs/.env2"}
|
|
env, err := loadEnvs(envs)
|
|
|
|
if err != nil {
|
|
t.Fatalf("Could not read environments: %s", err)
|
|
}
|
|
|
|
if env["env1"] == "" {
|
|
t.Fatalf("$env1 should be present and is not")
|
|
}
|
|
|
|
if env["env2"] == "" {
|
|
t.Fatalf("$env2 should be present and is not")
|
|
}
|
|
}
|