review_test.go 475 B

12345678910111213141516171819
  1. package service
  2. import (
  3. "context"
  4. "testing"
  5. "go-common/app/admin/main/member/model"
  6. "github.com/smartystreets/goconvey/convey"
  7. )
  8. func TestService_Reviews(t *testing.T) {
  9. convey.Convey("Reviews", t, func() {
  10. o, logs, err := s.Reviews(context.Background(), &model.ArgReviewList{Property: []int8{1}, IsDesc: true, STime: 10000, Pn: 1, Ps: 10})
  11. convey.So(err, convey.ShouldBeNil)
  12. convey.So(o, convey.ShouldNotBeNil)
  13. convey.So(logs, convey.ShouldNotBeNil)
  14. })
  15. }