diff options
Diffstat (limited to 'service/env/service_test.go')
-rw-r--r-- | service/env/service_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/service/env/service_test.go b/service/env/service_test.go index 5b148207..28e0d15b 100644 --- a/service/env/service_test.go +++ b/service/env/service_test.go @@ -10,6 +10,16 @@ func Test_NewService(t *testing.T) { assert.Len(t, s.values, 1) } +func Test_Init(t *testing.T) { + s := &Service{} + s.Init(&Config{}) + assert.Len(t, s.values, 1) + + values, err := s.GetEnv() + assert.NoError(t, err) + assert.Equal(t, "yes", values["rr"]) +} + func Test_Extend(t *testing.T) { s := NewService(map[string]string{"rr": "version"}) |