mirror of
https://github.com/Jinnrry/PMail.git
synced 2025-10-05 23:36:50 +08:00
20 lines
307 B
Go
20 lines
307 B
Go
package wechat_push
|
|
|
|
import (
|
|
"pmail/config"
|
|
"pmail/dto/parsemail"
|
|
"testing"
|
|
)
|
|
|
|
func testInit() {
|
|
|
|
config.Init()
|
|
|
|
}
|
|
func TestWeChatPushHook_ReceiveParseAfter(t *testing.T) {
|
|
testInit()
|
|
|
|
w := NewWechatPushHook()
|
|
w.ReceiveParseAfter(&parsemail.Email{Subject: "标题", Text: []byte("文本内容")})
|
|
}
|