bilibili-backup/app/service/main/coin/dao/relation_test.go
2019-04-22 02:59:20 +00:00

19 lines
404 B
Go

package dao
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestDaoGetPassportDetail(t *testing.T) {
convey.Convey("passport", t, func() {
var mid int64 = 27515586
httpMock("GET", _passportURL).Reply(200).BodyString(`{"code":0}`)
res, err := d.PassportDetail(context.TODO(), mid)
convey.So(err, convey.ShouldBeNil)
convey.So(res, convey.ShouldBeNil)
})
}