iris/_examples/mvc/grpc-compatible/main_test.go
Gerasimos (Makis) Maropoulos 08403f0317 Update to version 12.1.8 - Read HISTORY.md
Former-commit-id: d3d30cb15537146e3071731be9d674a5cb59de97
2020-02-16 11:14:35 +02:00

17 lines
332 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("/login").WithJSON(map[string]string{"username": "makis"}).Expect().
Status(httptest.StatusOK).
JSON().Equal(map[string]string{"message": "makis logged"})
}