You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
439 B

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)
})
})
})
}