go-common/app/job/main/account-recovery/dao/req_http_test.go

36 lines
694 B
Go
Raw Normal View History

2019-04-22 10:49:16 +00:00
package dao
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestDaoCompareInfo(t *testing.T) {
var (
c = context.Background()
rid = int64(1)
)
convey.Convey("CompareInfo", t, func(ctx convey.C) {
err := d.CompareInfo(c, rid)
ctx.Convey("Then err should be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldBeNil)
})
})
}
func TestDaoSendMail(t *testing.T) {
var (
c = context.Background()
rid = int64(1)
status = int64(1)
)
convey.Convey("SendMail", t, func(ctx convey.C) {
err := d.SendMail(c, rid, status)
ctx.Convey("Then err should be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldBeNil)
})
})
}