mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-06-08 14:08:30 -05:00
21 lines
439 B
Go
21 lines
439 B
Go
|
|
package show
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"testing"
|
||
|
|
"time"
|
||
|
|
|
||
|
|
"github.com/smartystreets/goconvey/convey"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestDaoRelate(t *testing.T) {
|
||
|
|
convey.Convey("Relate", t, func(ctx convey.C) {
|
||
|
|
ctx.Convey("When everything is correct", func(ctx convey.C) {
|
||
|
|
_, err := d.Relate(context.Background(), time.Now())
|
||
|
|
ctx.Convey("Error should be nil, res should not be nil", func(ctx convey.C) {
|
||
|
|
ctx.So(err, convey.ShouldBeNil)
|
||
|
|
})
|
||
|
|
})
|
||
|
|
})
|
||
|
|
}
|