Files

22 lines
416 B
Go
Raw Permalink Normal View History

2019-04-22 20:46:32 +08:00
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)
}))
}