watcher/pkg/pusher/anPush_test.go
timerzz ba47d0a32a
Some checks failed
Build image / build (push) Failing after 20s
feat 抽出公共方法到common
2024-05-13 20:18:13 +08:00

19 lines
323 B
Go

package pusher
import (
"haitao_watcher/pkg/options"
"testing"
)
func TestAnPush_Push(t *testing.T) {
var opt = &options.AnPushOption{
Token: "LHS13BO3FGBLGBP9MFBM53R8WV32P1",
Channel: "06683",
}
pusher := NewAnPush(opt)
err := pusher.Push("测试", "这是一个测试")
if err != nil {
t.Fatal(err)
}
}