@@ -64,7 +64,7 @@ func TestGetCommentsByIDHandler(t *testing.T) {
6464 tt .setupMocks (mockCommentRepo )
6565
6666 commentService := service .NewCommentService (mockCommentRepo )
67- mux := api .NewCommentMux (testutil .NewTestLogger (), commentService , handler .NoMiddleware )
67+ mux := api .NewCommentMux (testutil .NewTestLogger (), commentService , nil , handler .NoMiddleware )
6868
6969 r := httptest .NewRequest (http .MethodGet , "/" + tt .commentID , nil )
7070 r .SetPathValue ("id" , tt .commentID )
@@ -130,7 +130,7 @@ func TestCreateCommentHandler(t *testing.T) {
130130 tt .setupMocks (mockCommentRepo )
131131
132132 commentService := service .NewCommentService (mockCommentRepo )
133- mux := api .NewCommentMux (testutil .NewTestLogger (), commentService , handler .NoMiddleware )
133+ mux := api .NewCommentMux (testutil .NewTestLogger (), commentService , nil , handler .NoMiddleware )
134134
135135 var r * http.Request
136136 if tt .name == "invalid json" {
@@ -205,7 +205,7 @@ func TestReactToCommentHandler(t *testing.T) {
205205 tt .setupMocks (mockCommentRepo )
206206
207207 commentService := service .NewCommentService (mockCommentRepo )
208- mux := api .NewCommentMux (testutil .NewTestLogger (), commentService , handler .NoMiddleware )
208+ mux := api .NewCommentMux (testutil .NewTestLogger (), commentService , nil , handler .NoMiddleware )
209209
210210 var r * http.Request
211211 if tt .name == "invalid json" {
@@ -268,7 +268,7 @@ func TestDeleteCommentHandler(t *testing.T) {
268268 tt .setupMocks (mockCommentRepo )
269269
270270 commentService := service .NewCommentService (mockCommentRepo )
271- mux := api .NewCommentMux (testutil .NewTestLogger (), commentService , handler .NoMiddleware )
271+ mux := api .NewCommentMux (testutil .NewTestLogger (), commentService , nil , handler .NoMiddleware )
272272
273273 r := httptest .NewRequest (http .MethodDelete , "/" + tt .commentID , nil )
274274 r .SetPathValue ("id" , tt .commentID )
0 commit comments