Skip to content

Commit

Permalink
add new testcase for HEAD route
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Oct 21, 2023
1 parent f09fc5b commit 3e12825
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1922,4 +1922,14 @@ func Test_Route_Naming_Issue_2671_2685(t *testing.T) {

addUser = app.GetRoute("add-user")
utils.AssertEqual(t, addUser.Path, "/users")

app.Get("/simple-route", emptyHandler).Name("simple-route")
app.Head("/simple-route", emptyHandler).Name("simple-route2")

sRoute := app.GetRoute("simple-route")
utils.AssertEqual(t, sRoute.Path, "/simple-route")

sRoute2 := app.GetRoute("simple-route2")
utils.AssertEqual(t, sRoute2.Path, "/simple-route")

}

0 comments on commit 3e12825

Please sign in to comment.