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.
27 lines
513 B
27 lines
513 B
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) |
|
})) |
|
}
|
|
|