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