mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
5d3c96947c
read HISTORY.md Former-commit-id: 30a16cceb11f754aa32923058abeda1e736350e7
17 lines
349 B
Go
17 lines
349 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("/helloworld.Greeter/SayHello").WithJSON(map[string]string{"name": "makis"}).Expect().
|
|
Status(httptest.StatusOK).
|
|
JSON().Equal(map[string]string{"message": "Hello makis"})
|
|
}
|