mirror of
https://github.com/interviewstreet/go-jira.git
synced 2024-11-28 08:39:03 +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
|
||||
Group *GroupService
|
||||
Version *VersionService
|
||||
Priority *PriorityService
|
||||
}
|
||||
|
||||
// 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.Group = &GroupService{client: c}
|
||||
c.Version = &VersionService{client: c}
|
||||
c.Priority = &PriorityService{client: c}
|
||||
|
||||
return c, nil
|
||||
}
|
||||
|
@ -115,6 +115,9 @@ func TestNewClient_WithServices(t *testing.T) {
|
||||
if c.Version == nil {
|
||||
t.Error("No VersionService provided")
|
||||
}
|
||||
if c.Priority == nil {
|
||||
t.Error("No PriorityService provided")
|
||||
}
|
||||
}
|
||||
|
||||
func TestCheckResponse(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user