diff --git a/tests/kira_test.go b/tests/kira_test.go index 516dcfd..ead9ce4 100644 --- a/tests/kira_test.go +++ b/tests/kira_test.go @@ -10,6 +10,7 @@ import ( "github.com/go-kira/kira" ) +// Create a server with initial routes. func setupServer() *httptest.Server { app := kira.New() @@ -31,6 +32,8 @@ func setupServer() *httptest.Server { return ts } + +// Test against GET requests. func getResponse(path string) ([]byte, error) { ts := setupServer() defer ts.Close() @@ -78,7 +81,7 @@ func TestTemplateNotExists(t *testing.T) { } // Assert - if fmt.Sprintf("%s", content) != "not existss" { - t.Errorf("The response is not equal to: `Kira Template`, is equal to: %s", content) + if fmt.Sprintf("%s", content) != "not exists" { + t.Errorf("The response is not equal to: `not exists`, is equal to: %s", content) } }