iris/_examples/routing/writing-a-middleware/share-services/main_test.go
Gerasimos (Makis) Maropoulos f6905a3f79
New Context.SetLogoutFunc/Logout and SetFunc/CallFunc methods
Read HISTORY.md
2020-10-12 02:07:04 +03:00

15 lines
243 B
Go

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