1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-09 13:05:56 +00:00

use jet v5.0.2 (no breaking changes)

relative to: https://github.com/kataras/iris/pull/1616
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-10 10:12:06 +03:00
parent 62d1185d25
commit 333be428c4
6 changed files with 15 additions and 12 deletions

View File

@@ -12,6 +12,8 @@ func TestI18nLoaderFuncMap(t *testing.T) {
e := httptest.New(t, app)
e.GET("/").Expect().Status(httptest.StatusOK).
Body().Equal("Hi 2 dogs")
e.GET("/singular").Expect().Status(httptest.StatusOK).
Body().Equal("Hi 1 dog")
e.GET("/").WithHeader("Accept-Language", "el").Expect().Status(httptest.StatusOK).
Body().Equal("Γειά 2 σκυλί")
}