mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
fix #2158 and more
This commit is contained in:
@@ -89,7 +89,7 @@ func TestFileServerBasic(t *testing.T) {
|
||||
e.GET(url).Expect().
|
||||
Status(httptest.StatusOK).
|
||||
ContentType(u.contentType(), app.ConfigurationReadOnly().GetCharset()).
|
||||
Body().Equal(contents)
|
||||
Body().IsEqual(contents)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,6 +109,6 @@ func TestHandleDirDot(t *testing.T) {
|
||||
e.GET(url).Expect().
|
||||
Status(httptest.StatusOK).
|
||||
ContentType(u.contentType(), app.ConfigurationReadOnly().GetCharset()).
|
||||
Body().Equal(contents)
|
||||
Body().IsEqual(contents)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -89,6 +89,6 @@ func TestEmbeddingFilesIntoApp(t *testing.T) {
|
||||
e.GET(url).Expect().
|
||||
Status(httptest.StatusOK).
|
||||
ContentType(u.contentType()).
|
||||
Body().Equal(contents)
|
||||
Body().IsEqual(contents)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,6 +84,6 @@ func TestEmbeddingFilesIntoApp(t *testing.T) {
|
||||
e.GET(url).Expect().
|
||||
Status(httptest.StatusOK).
|
||||
ContentType(u.contentType()).
|
||||
Body().Equal(contents)
|
||||
Body().IsEqual(contents)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ func TestSPAEmbedded(t *testing.T) {
|
||||
e.GET(url).Expect().
|
||||
Status(httptest.StatusOK).
|
||||
ContentType(u.contentType(), app.ConfigurationReadOnly().GetCharset()).
|
||||
Body().Equal(contents)
|
||||
Body().IsEqual(contents)
|
||||
}
|
||||
|
||||
e.GET("/index.html").Expect().Status(httptest.StatusNotFound) // only root is served.
|
||||
|
||||
@@ -76,6 +76,6 @@ func TestFileServerSubdomainBasic(t *testing.T) {
|
||||
e.GET(url).WithURL(host).Expect().
|
||||
Status(httptest.StatusOK).
|
||||
ContentType(u.contentType(), app.ConfigurationReadOnly().GetCharset()).
|
||||
Body().Equal(contents)
|
||||
Body().IsEqual(contents)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user