1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-07 20:17:05 +00:00

minor for travis

Former-commit-id: 2a62e2817e8fc98a77359344a88505151b61654e
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-03-02 10:21:38 +02:00
parent 5da8ff92f3
commit 78ab341862
4 changed files with 13 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import (
"io/ioutil"
"testing"
"github.com/kataras/iris/v12"
"github.com/kataras/iris/v12/httptest"
)
@@ -20,7 +21,9 @@ func TestContentNegotiation(t *testing.T) {
expectedHTMLResponse = "<h1>Test Name</h1><h2>Age 26</h2>"
)
e := httptest.New(t, newApp())
app := newApp()
app.Configure(iris.WithOptimizations)
e := httptest.New(t, app)
e.GET("/resource").WithHeader("Accept", "application/json").
Expect().Status(httptest.StatusOK).