Skip to content

Commit e9a261c

Browse files
hirakiucghostsquad
authored andcommitted
fix: Fix typos in filter_test.go
1 parent 38a755b commit e9a261c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

filter_test.go

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ import (
1010
func TestFilterService_GetList(t *testing.T) {
1111
setup()
1212
defer teardown()
13-
testAPIEdpoint := "/rest/api/2/filter"
13+
testAPIEndpoint := "/rest/api/2/filter"
1414
raw, err := ioutil.ReadFile("./mocks/all_filters.json")
1515
if err != nil {
1616
t.Error(err.Error())
1717
}
18-
testMux.HandleFunc(testAPIEdpoint, func(writer http.ResponseWriter, request *http.Request) {
18+
testMux.HandleFunc(testAPIEndpoint, func(writer http.ResponseWriter, request *http.Request) {
1919
testMethod(t, request, "GET")
20-
testRequestURL(t, request, testAPIEdpoint)
20+
testRequestURL(t, request, testAPIEndpoint)
2121
fmt.Fprint(writer, string(raw))
2222
})
2323

@@ -33,14 +33,14 @@ func TestFilterService_GetList(t *testing.T) {
3333
func TestFilterService_Get(t *testing.T) {
3434
setup()
3535
defer teardown()
36-
testAPIEdpoint := "/rest/api/2/filter/10000"
36+
testAPIEndpoint := "/rest/api/2/filter/10000"
3737
raw, err := ioutil.ReadFile("./mocks/filter.json")
3838
if err != nil {
3939
t.Error(err.Error())
4040
}
41-
testMux.HandleFunc(testAPIEdpoint, func(writer http.ResponseWriter, request *http.Request) {
41+
testMux.HandleFunc(testAPIEndpoint, func(writer http.ResponseWriter, request *http.Request) {
4242
testMethod(t, request, "GET")
43-
testRequestURL(t, request, testAPIEdpoint)
43+
testRequestURL(t, request, testAPIEndpoint)
4444
fmt.Fprintf(writer, string(raw))
4545
})
4646

@@ -57,14 +57,14 @@ func TestFilterService_Get(t *testing.T) {
5757
func TestFilterService_GetFavouriteList(t *testing.T) {
5858
setup()
5959
defer teardown()
60-
testAPIEdpoint := "/rest/api/2/filter/favourite"
60+
testAPIEndpoint := "/rest/api/2/filter/favourite"
6161
raw, err := ioutil.ReadFile("./mocks/favourite_filters.json")
6262
if err != nil {
6363
t.Error(err.Error())
6464
}
65-
testMux.HandleFunc(testAPIEdpoint, func(writer http.ResponseWriter, request *http.Request) {
65+
testMux.HandleFunc(testAPIEndpoint, func(writer http.ResponseWriter, request *http.Request) {
6666
testMethod(t, request, "GET")
67-
testRequestURL(t, request, testAPIEdpoint)
67+
testRequestURL(t, request, testAPIEndpoint)
6868
fmt.Fprint(writer, string(raw))
6969
})
7070

0 commit comments

Comments
 (0)