relate_test.go 439 B

1234567891011121314151617181920
  1. package show
  2. import (
  3. "context"
  4. "testing"
  5. "time"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestDaoRelate(t *testing.T) {
  9. convey.Convey("Relate", t, func(ctx convey.C) {
  10. ctx.Convey("When everything is correct", func(ctx convey.C) {
  11. _, err := d.Relate(context.Background(), time.Now())
  12. ctx.Convey("Error should be nil, res should not be nil", func(ctx convey.C) {
  13. ctx.So(err, convey.ShouldBeNil)
  14. })
  15. })
  16. })
  17. }