mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-04-13 11:40:36 +02:00
fix: Add PriorityService to the main
This commit is contained in:
parent
b41b41a066
commit
8491cb0034
2
jira.go
2
jira.go
@ -35,6 +35,7 @@ type Client struct {
|
|||||||
User *UserService
|
User *UserService
|
||||||
Group *GroupService
|
Group *GroupService
|
||||||
Version *VersionService
|
Version *VersionService
|
||||||
|
Priority *PriorityService
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewClient returns a new JIRA API client.
|
// NewClient returns a new JIRA API client.
|
||||||
@ -71,6 +72,7 @@ func NewClient(httpClient *http.Client, baseURL string) (*Client, error) {
|
|||||||
c.User = &UserService{client: c}
|
c.User = &UserService{client: c}
|
||||||
c.Group = &GroupService{client: c}
|
c.Group = &GroupService{client: c}
|
||||||
c.Version = &VersionService{client: c}
|
c.Version = &VersionService{client: c}
|
||||||
|
c.Priority = &PriorityService{client: c}
|
||||||
|
|
||||||
return c, nil
|
return c, nil
|
||||||
}
|
}
|
||||||
|
@ -115,6 +115,9 @@ func TestNewClient_WithServices(t *testing.T) {
|
|||||||
if c.Version == nil {
|
if c.Version == nil {
|
||||||
t.Error("No VersionService provided")
|
t.Error("No VersionService provided")
|
||||||
}
|
}
|
||||||
|
if c.Priority == nil {
|
||||||
|
t.Error("No PriorityService provided")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestCheckResponse(t *testing.T) {
|
func TestCheckResponse(t *testing.T) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user