mirror of
https://github.com/labstack/echo.git
synced 2025-11-27 22:38:25 +02:00
Fixed #1052, dropped param alias feature
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
@@ -303,18 +303,6 @@ func TestContextPathParam(t *testing.T) {
|
||||
assert.Equal(t, "501", c.Param("fid"))
|
||||
}
|
||||
|
||||
func TestContextPathParamNamesAlais(t *testing.T) {
|
||||
e := New()
|
||||
req := httptest.NewRequest(GET, "/", nil)
|
||||
c := e.NewContext(req, nil)
|
||||
|
||||
c.SetParamNames("id,name")
|
||||
c.SetParamValues("joe")
|
||||
|
||||
assert.Equal(t, "joe", c.Param("id"))
|
||||
assert.Equal(t, "joe", c.Param("name"))
|
||||
}
|
||||
|
||||
func TestContextFormValue(t *testing.T) {
|
||||
f := make(url.Values)
|
||||
f.Set("name", "Jon Snow")
|
||||
|
||||
Reference in New Issue
Block a user