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

15 lines
252 B
Go
Raw Normal View History

package main
import (
"testing"
"github.com/kataras/iris/v12/httptest"
)
func TestSimpleRouteRemoveHandler(t *testing.T) {
app := newApp()
e := httptest.New(t, app)
2023-07-08 01:08:18 +02:00
e.GET("/api/users").Expect().Status(httptest.StatusOK).Body().IsEqual("OK")
}