iris/_examples/routing/http-errors/reset-body/main_test.go
Gerasimos (Makis) Maropoulos 802348cedd fix https://github.com/kataras/iris/issues/1569#issuecomment-663739177
Former-commit-id: c55f1023f4d93f6712c7fa4d299bcf1098872ecf
2020-07-25 09:23:34 +03:00

15 lines
272 B
Go

package main
import (
"testing"
"github.com/kataras/iris/v12/httptest"
)
func TestResetCompressionAndFireError(t *testing.T) { // #1569
app := newApp()
e := httptest.New(t, app)
e.GET("/").Expect().Status(httptest.StatusBadRequest).Body().Equal("custom error")
}