Skip to content

Commit

Permalink
register SetValidatorMiddleware during TestEditResponse (`responses…
Browse files Browse the repository at this point in the history
…_test.go`)
  • Loading branch information
cp-20 committed Dec 4, 2023
1 parent 1230bd1 commit 63c0f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion router/responses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,7 @@ func TestEditResponse(t *testing.T) {
}

e := echo.New()
e.PATCH("/api/responses/:responseID", r.EditResponse, m.SetUserIDMiddleware, m.TraPMemberAuthenticate, func(next echo.HandlerFunc) echo.HandlerFunc {
e.PATCH("/api/responses/:responseID", r.EditResponse, m.SetUserIDMiddleware, m.SetValidatorMiddleware, m.TraPMemberAuthenticate, func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
responseID, err := strconv.Atoi(c.Param("responseID"))
if err != nil {
Expand Down

0 comments on commit 63c0f82

Please sign in to comment.