@@ -10,14 +10,14 @@ import (
10
10
func TestFilterService_GetList (t * testing.T ) {
11
11
setup ()
12
12
defer teardown ()
13
- testAPIEdpoint := "/rest/api/2/filter"
13
+ testAPIEndpoint := "/rest/api/2/filter"
14
14
raw , err := ioutil .ReadFile ("./mocks/all_filters.json" )
15
15
if err != nil {
16
16
t .Error (err .Error ())
17
17
}
18
- testMux .HandleFunc (testAPIEdpoint , func (writer http.ResponseWriter , request * http.Request ) {
18
+ testMux .HandleFunc (testAPIEndpoint , func (writer http.ResponseWriter , request * http.Request ) {
19
19
testMethod (t , request , "GET" )
20
- testRequestURL (t , request , testAPIEdpoint )
20
+ testRequestURL (t , request , testAPIEndpoint )
21
21
fmt .Fprint (writer , string (raw ))
22
22
})
23
23
@@ -33,14 +33,14 @@ func TestFilterService_GetList(t *testing.T) {
33
33
func TestFilterService_Get (t * testing.T ) {
34
34
setup ()
35
35
defer teardown ()
36
- testAPIEdpoint := "/rest/api/2/filter/10000"
36
+ testAPIEndpoint := "/rest/api/2/filter/10000"
37
37
raw , err := ioutil .ReadFile ("./mocks/filter.json" )
38
38
if err != nil {
39
39
t .Error (err .Error ())
40
40
}
41
- testMux .HandleFunc (testAPIEdpoint , func (writer http.ResponseWriter , request * http.Request ) {
41
+ testMux .HandleFunc (testAPIEndpoint , func (writer http.ResponseWriter , request * http.Request ) {
42
42
testMethod (t , request , "GET" )
43
- testRequestURL (t , request , testAPIEdpoint )
43
+ testRequestURL (t , request , testAPIEndpoint )
44
44
fmt .Fprintf (writer , string (raw ))
45
45
})
46
46
@@ -57,14 +57,14 @@ func TestFilterService_Get(t *testing.T) {
57
57
func TestFilterService_GetFavouriteList (t * testing.T ) {
58
58
setup ()
59
59
defer teardown ()
60
- testAPIEdpoint := "/rest/api/2/filter/favourite"
60
+ testAPIEndpoint := "/rest/api/2/filter/favourite"
61
61
raw , err := ioutil .ReadFile ("./mocks/favourite_filters.json" )
62
62
if err != nil {
63
63
t .Error (err .Error ())
64
64
}
65
- testMux .HandleFunc (testAPIEdpoint , func (writer http.ResponseWriter , request * http.Request ) {
65
+ testMux .HandleFunc (testAPIEndpoint , func (writer http.ResponseWriter , request * http.Request ) {
66
66
testMethod (t , request , "GET" )
67
- testRequestURL (t , request , testAPIEdpoint )
67
+ testRequestURL (t , request , testAPIEndpoint )
68
68
fmt .Fprint (writer , string (raw ))
69
69
})
70
70
0 commit comments