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

15 lines
274 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)
2023-07-08 01:08:18 +02:00
e.GET("/").Expect().Status(httptest.StatusBadRequest).Body().IsEqual("custom error")
}