1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-28 06:15:59 +00:00
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-10 17:52:25 +03:00
parent b17217444e
commit bfb7b19096
4 changed files with 29 additions and 3 deletions

View File

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