feat(platform): expose amap server readiness
This commit is contained in:
@@ -24,3 +24,13 @@ func TestLoadReadsPlatformRelease(t *testing.T) {
|
||||
t.Fatalf("PlatformRelease = %q", cfg.PlatformRelease)
|
||||
}
|
||||
}
|
||||
|
||||
func TestLoadReadsAMapServerAPIKey(t *testing.T) {
|
||||
t.Setenv("AMAP_API_KEY", "server-map-key")
|
||||
|
||||
cfg := Load()
|
||||
|
||||
if cfg.AMapAPIKey != "server-map-key" {
|
||||
t.Fatalf("AMapAPIKey = %q", cfg.AMapAPIKey)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user