Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akyoto committed Jun 2, 2019
1 parent 4d919ef commit 36427a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"net/http"
"net/http/httptest"
"strings"
"testing"

"github.com/aerogo/aero"
Expand Down Expand Up @@ -111,7 +112,7 @@ func TestQuotePages(t *testing.T) {
// }

func testRoute(t *testing.T, app *aero.Application, route string) {
request := httptest.NewRequest("GET", route, nil)
request := httptest.NewRequest("GET", strings.ReplaceAll(route, " ", "%20"), nil)
response := httptest.NewRecorder()
app.ServeHTTP(response, request)
status := response.Code
Expand Down

0 comments on commit 36427a1

Please sign in to comment.