123456789101112131415161718192021222324252627 |
- package web
- import (
- "context"
- "net/url"
- "testing"
- "go-common/app/interface/main/web-goblin/model/web"
- . "github.com/smartystreets/goconvey/convey"
- )
- func TestService_Recruit(t *testing.T) {
- Convey("test recruit", t, WithService(func(s *Service) {
- var (
- ctx = context.Background()
- param = url.Values{}
- ru = &web.Params{
- Route: "v1/jobs",
- }
- )
- param.Set("mode", "social")
- res, err := s.Recruit(ctx, param, ru)
- So(len(res), ShouldBeGreaterThan)
- So(err, ShouldBeNil)
- }))
- }
|