diff --git a/response_test.go b/response_test.go index 9116b833..a691686d 100644 --- a/response_test.go +++ b/response_test.go @@ -1,10 +1,11 @@ package echo import ( - "github.com/stretchr/testify/assert" "net/http" "net/http/httptest" "testing" + + "github.com/stretchr/testify/assert" ) func TestResponse(t *testing.T) { @@ -46,6 +47,9 @@ func TestResponse(t *testing.T) { // Size assert.EqualValues(t, len(s), r.Size()) + // Committed + assert.Equal(t, true, r.Committed()) + // Hijack assert.Panics(t, func() { r.Hijack()