iris/_examples/routing/http-errors/reset-body/main_test.go

15 lines
272 B
Go
Raw Normal View History

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")
}