package config import ( "testing" "github.com/stretchr/testify/assert" ) func TestEnvVar(t *testing.T) { t.Run("Test", func(t *testing.T) { assert.Equal(t, "PHOTOPRISM_TEST", EnvVar(EnvTest)) }) t.Run("Foo", func(t *testing.T) { assert.Equal(t, "PHOTOPRISM_FOO", EnvVar("foo")) }) } func TestEnv(t *testing.T) { t.Run("True", func(t *testing.T) { assert.True(t, Env(EnvTest)) }) t.Run("False", func(t *testing.T) { assert.False(t, Env("foo")) }) }