1
0
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:
Thibaut Rousseau 2018-06-12 10:22:48 +02:00
parent b41b41a066
commit 8491cb0034
No known key found for this signature in database
GPG Key ID: BCA6444086610E3D
2 changed files with 5 additions and 0 deletions

View File

@ -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
}

View File

@ -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) {