1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

example: gRPC-compatible controller

as requested at: https://github.com/kataras/iris/issues/1449


Former-commit-id: a0af1a78bcfef85f297c5087c8cbb00124226036
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-02-12 19:27:11 +02:00
parent 29b360dd26
commit 09a410c6cb
4 changed files with 77 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
package main
import (
"testing"
"github.com/kataras/iris/v12/httptest"
)
func TestBindContextContext(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"})
}