iris/_examples/mvc/grpc-compatible/main_test.go
Gerasimos (Makis) Maropoulos aea836efc7 add a full gRPC example as previously requested at: https://github.com/kataras/iris/issues/1449
Former-commit-id: 0cb5121e7d44644f7f0eb34597ff34274157fe95
2020-03-07 12:53:23 +02:00

17 lines
327 B
Go

package main
import (
"testing"
"github.com/kataras/iris/v12/httptest"
)
func TestGRPCCompatible(t *testing.T) {
app := newApp()
e := httptest.New(t, app)
e.POST("/hello").WithJSON(map[string]string{"name": "makis"}).Expect().
Status(httptest.StatusOK).
JSON().Equal(map[string]string{"message": "Hello makis"})
}