github.com/seeker-insurance/kit@v0.0.13/web/meta/meta_test.go (about) 1 package meta 2 3 import ( 4 "testing" 5 6 "github.com/spf13/viper" 7 "github.com/stretchr/testify/assert" 8 ) 9 10 func TestAPIURL(t *testing.T) { 11 viper.Set("root_url", "http://example.com/") 12 url := APIURL("resources/1") 13 assert.Equal(t, "http://example.com/resources/1", url) 14 }