You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
416 B
21 lines
416 B
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) |
|
})) |
|
}
|
|
|