Use consts for route names and templates.

This commit is contained in:
mikestefanello 2023-12-16 11:07:20 -05:00
parent 5af18e2473
commit c2b6928fb4
30 changed files with 135 additions and 82 deletions

View file

@ -11,7 +11,7 @@ import (
// this test package
func TestAbout_Get(t *testing.T) {
doc := request(t).
setRoute("about").
setRoute(routeNameAbout).
get().
assertStatusCode(http.StatusOK).
toDoc()