bilibili-backup/app/admin/main/reply/dao/message_test.go
2019-04-22 02:59:20 +00:00

26 lines
492 B
Go

package dao
import (
"context"
"testing"
"time"
. "github.com/smartystreets/goconvey/convey"
)
func TestMessage(t *testing.T) {
var (
mid = int64(1)
title = "test title"
msg = "test msg"
now = time.Now()
c = context.Background()
)
Convey("test send a message", t, WithDao(func(d *Dao) {
d.SendReplyDelMsg(c, mid, title, msg, now)
So(msg, ShouldEqual, "test msg")
d.SendReportAcceptMsg(c, mid, title, msg, now)
So(title, ShouldEqual, "test title")
}))
}