mirror-nourybot/pkg/config/config_test.go

21 lines
300 B
Go
Raw Normal View History

2021-10-28 23:31:59 +02:00
package config
import (
"os"
"testing"
)
func TestLoadConfig(t *testing.T) {
t.Run("loads a testing value from the .env file", func(t *testing.T) {
LoadConfigTest()
got := os.Getenv("TEST_VALUE")
want := "xDLUL420"
if got != want {
t.Errorf("got %q, want %q", got, want)
}
})
}