mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-03-17 20:47:57 +02:00
refactor project tests + go fmt
This commit is contained in:
parent
c9ac91a57c
commit
c66958e3f2
2
jira.go
2
jira.go
@ -3,10 +3,10 @@ package jira
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// A Client manages communication with the JIRA API.
|
||||
|
@ -55,7 +55,7 @@ func TestProjectGet(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestProjectWrongGet(t *testing.T) {
|
||||
func TestProjectGet_NoProject(t *testing.T) {
|
||||
setup()
|
||||
defer teardown()
|
||||
testApiEdpoint := "/rest/api/2/project/99999999"
|
||||
@ -66,7 +66,7 @@ func TestProjectWrongGet(t *testing.T) {
|
||||
fmt.Fprint(w, nil)
|
||||
})
|
||||
|
||||
projects, resp, err := testClient.Project.Get("12310505")
|
||||
projects, resp, err := testClient.Project.Get("99999999")
|
||||
if projects != nil {
|
||||
t.Errorf("Expected nil. Got %s", projects)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user