mirror of
https://github.com/silenceper/wechat.git
synced 2026-11-16 05:12:03 +08:00
* feat: add aispeech dialog APIs * test: fix aispeech lint failures * test: satisfy aispeech interfacer lint
16 lines
334 B
Go
16 lines
334 B
Go
package config
|
|
|
|
import "testing"
|
|
|
|
func TestGetBaseURL(t *testing.T) {
|
|
cfg := &Config{}
|
|
if cfg.GetBaseURL() != defaultBaseURL {
|
|
t.Fatalf("bad default base url: %s", cfg.GetBaseURL())
|
|
}
|
|
|
|
cfg.BaseURL = "http://example.com"
|
|
if cfg.GetBaseURL() != "http://example.com" {
|
|
t.Fatalf("bad custom base url: %s", cfg.GetBaseURL())
|
|
}
|
|
}
|