mirror of
https://github.com/interviewstreet/go-jira.git
synced 2025-03-19 20:57:47 +02:00
fix: Fix typos in filter_test.go
This commit is contained in:
parent
38a755b407
commit
e9a261c522
@ -10,14 +10,14 @@ import (
|
||||
func TestFilterService_GetList(t *testing.T) {
|
||||
setup()
|
||||
defer teardown()
|
||||
testAPIEdpoint := "/rest/api/2/filter"
|
||||
testAPIEndpoint := "/rest/api/2/filter"
|
||||
raw, err := ioutil.ReadFile("./mocks/all_filters.json")
|
||||
if err != nil {
|
||||
t.Error(err.Error())
|
||||
}
|
||||
testMux.HandleFunc(testAPIEdpoint, func(writer http.ResponseWriter, request *http.Request) {
|
||||
testMux.HandleFunc(testAPIEndpoint, func(writer http.ResponseWriter, request *http.Request) {
|
||||
testMethod(t, request, "GET")
|
||||
testRequestURL(t, request, testAPIEdpoint)
|
||||
testRequestURL(t, request, testAPIEndpoint)
|
||||
fmt.Fprint(writer, string(raw))
|
||||
})
|
||||
|
||||
@ -33,14 +33,14 @@ func TestFilterService_GetList(t *testing.T) {
|
||||
func TestFilterService_Get(t *testing.T) {
|
||||
setup()
|
||||
defer teardown()
|
||||
testAPIEdpoint := "/rest/api/2/filter/10000"
|
||||
testAPIEndpoint := "/rest/api/2/filter/10000"
|
||||
raw, err := ioutil.ReadFile("./mocks/filter.json")
|
||||
if err != nil {
|
||||
t.Error(err.Error())
|
||||
}
|
||||
testMux.HandleFunc(testAPIEdpoint, func(writer http.ResponseWriter, request *http.Request) {
|
||||
testMux.HandleFunc(testAPIEndpoint, func(writer http.ResponseWriter, request *http.Request) {
|
||||
testMethod(t, request, "GET")
|
||||
testRequestURL(t, request, testAPIEdpoint)
|
||||
testRequestURL(t, request, testAPIEndpoint)
|
||||
fmt.Fprintf(writer, string(raw))
|
||||
})
|
||||
|
||||
@ -57,14 +57,14 @@ func TestFilterService_Get(t *testing.T) {
|
||||
func TestFilterService_GetFavouriteList(t *testing.T) {
|
||||
setup()
|
||||
defer teardown()
|
||||
testAPIEdpoint := "/rest/api/2/filter/favourite"
|
||||
testAPIEndpoint := "/rest/api/2/filter/favourite"
|
||||
raw, err := ioutil.ReadFile("./mocks/favourite_filters.json")
|
||||
if err != nil {
|
||||
t.Error(err.Error())
|
||||
}
|
||||
testMux.HandleFunc(testAPIEdpoint, func(writer http.ResponseWriter, request *http.Request) {
|
||||
testMux.HandleFunc(testAPIEndpoint, func(writer http.ResponseWriter, request *http.Request) {
|
||||
testMethod(t, request, "GET")
|
||||
testRequestURL(t, request, testAPIEdpoint)
|
||||
testRequestURL(t, request, testAPIEndpoint)
|
||||
fmt.Fprint(writer, string(raw))
|
||||
})
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user