server/pkg/sms/smsbao/smsbao_test.go
Chang lue Tsen 8addcc584b init: 1.0.0
2025-04-25 12:08:29 +09:00

17 lines
427 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package smsbao
import "testing"
func TestNewClient(t *testing.T) {
t.Skipf("Skip TestNewClient test")
client := NewClient(Config{
Template: "【XXX】您的验证码是{{.code}},有效期 {{.expiration}}。请不要把验证码泄露给其他人。",
})
err := client.SendCode("1", "", "223322")
if err != nil {
t.Errorf("TestNewClient() error = %v", err.Error())
return
}
t.Logf("TestNewClient success")
}