1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 20:37:05 +00:00

fix #2158 and more

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-07-08 02:08:18 +03:00
parent 757e7fe61b
commit 6add1ba49b
79 changed files with 551 additions and 467 deletions

View File

@@ -32,10 +32,10 @@ func TestFromStd(t *testing.T) {
e := httptest.New(t, app)
e.GET("/handler").
Expect().Status(iris.StatusOK).Body().Equal(expected)
Expect().Status(iris.StatusOK).Body().IsEqual(expected)
e.GET("/func").
Expect().Status(iris.StatusOK).Body().Equal(expected)
Expect().Status(iris.StatusOK).Body().IsEqual(expected)
}
func TestFromStdWithNext(t *testing.T) {
@@ -67,5 +67,5 @@ func TestFromStdWithNext(t *testing.T) {
Expect().Status(iris.StatusForbidden)
e.GET("/handlerwithnext").WithBasicAuth(basicauth, basicauth).
Expect().Status(iris.StatusOK).Body().Equal(passed)
Expect().Status(iris.StatusOK).Body().IsEqual(passed)
}