go-common/app/admin/main/feed/dao/show/app_active_test.go
2019-04-22 18:49:16 +08:00

24 lines
493 B
Go

package show
import (
"context"
"testing"
"github.com/smartystreets/goconvey/convey"
)
func TestShow_app_activeFindByID(t *testing.T) {
convey.Convey("AAFindByID", t, func(ctx convey.C) {
var (
c = context.Background()
id = int64(1)
)
ctx.Convey("When everything gose positive", func(ctx convey.C) {
_, err := d.AAFindByID(c, id)
ctx.Convey("Then err should be nil.active should not be nil.", func(ctx convey.C) {
ctx.So(err, convey.ShouldBeNil)
})
})
})
}