diff --git a/tests/github.com_trending.html b/testdata/github.com_trending.html similarity index 100% rename from tests/github.com_trending.html rename to testdata/github.com_trending.html diff --git a/tests/github.com_trending_developers.html b/testdata/github.com_trending_developers.html similarity index 100% rename from tests/github.com_trending_developers.html rename to testdata/github.com_trending_developers.html diff --git a/trending_test.go b/trending_test.go index 1516c16..6c29e13 100644 --- a/trending_test.go +++ b/trending_test.go @@ -91,7 +91,7 @@ func TestGetDevelopers_Today(t *testing.T) { testFormValues(t, r, values{ "since": "daily", }) - website := getContentOfFile("./tests/github.com_trending_developers.html") + website := getContentOfFile("./testdata/github.com_trending_developers.html") fmt.Fprint(w, string(website)) }) @@ -155,7 +155,7 @@ func TestGetTrendingLanguages(t *testing.T) { mux.HandleFunc("/trending", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") - website := getContentOfFile("./tests/github.com_trending.html") + website := getContentOfFile("./testdata/github.com_trending.html") fmt.Fprint(w, string(website)) }) @@ -210,7 +210,7 @@ func TestGetLanguages(t *testing.T) { mux.HandleFunc("/trending", func(w http.ResponseWriter, r *http.Request) { testMethod(t, r, "GET") - website := getContentOfFile("./tests/github.com_trending.html") + website := getContentOfFile("./testdata/github.com_trending.html") fmt.Fprint(w, string(website)) }) @@ -295,7 +295,7 @@ func TestGetProjects(t *testing.T) { "since": "daily", "l": "go", }) - website := getContentOfFile("./tests/github.com_trending.html") + website := getContentOfFile("./testdata/github.com_trending.html") fmt.Fprint(w, string(website)) })