Files
rogee 4d684a71eb
Build and publish Docker images / Build and publish images (push) Successful in 2m10s
feat: geolocate anonymous widget visitors
2026-09-15 08:54:13 +08:00

16 lines
272 B
Go

package config
import (
"testing"
"github.com/spf13/viper"
)
func TestSetDefaultsGeoIPPathIsOptional(t *testing.T) {
v := viper.New()
setDefaults(v)
if got := v.GetString("geoip.db_path"); got != "" {
t.Fatalf("geoip.db_path default = %q, want empty", got)
}
}