mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
21 lines
300 B
Go
21 lines
300 B
Go
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)
|
|
}
|
|
|
|
})
|
|
}
|