iris/_examples/routing/remove-handler/main_test.go

15 lines
250 B
Go

package main
import (
"testing"
"github.com/kataras/iris/v12/httptest"
)
func TestSimpleRouteRemoveHandler(t *testing.T) {
app := newApp()
e := httptest.New(t, app)
e.GET("/api/users").Expect().Status(httptest.StatusOK).Body().Equal("OK")
}