Files
go-common/app/interface/main/growup/service/notice_test.go
2019-04-22 18:49:16 +08:00

22 lines
416 B
Go

package service
import (
"context"
"testing"
. "github.com/smartystreets/goconvey/convey"
)
func Test_GetNotices(t *testing.T) {
var (
typ = 0
platform = 1
offset, limit = 0, 10
)
Convey("GetNotices", t, WithService(func(s *Service) {
res, _, err := s.GetNotices(context.Background(), typ, platform, offset, limit)
So(err, ShouldBeNil)
So(len(res), ShouldBeGreaterThan, 0)
}))
}