iris/_examples/routing/writing-a-middleware/share-services/main_test.go

15 lines
245 B
Go
Raw Normal View History

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