search_test.go 299 字节
Newer Older
LinuxSuRen's avatar
LinuxSuRen 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
package reply

import (
	"testing"

	core "github.com/linuxsuren/wechat-backend/pkg"
)

func TestSearch(t *testing.T) {
	reply := SearchAutoReply{}

	reply.Accept(&core.TextRequestBody{})

	data, err := reply.Handle()
	if err != nil {
		t.Errorf("error %v", err)
	}

	t.Errorf("%s", string(data))
}