From 9101f684d0121984061c3786759622a270edf0f6 Mon Sep 17 00:00:00 2001 From: "Grail Finder (aider)" Date: Sat, 29 Mar 2025 16:14:20 +0300 Subject: fix: add missing imports and fix syntax in test handler setup --- internal/handlers/handlers_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'internal/handlers') diff --git a/internal/handlers/handlers_test.go b/internal/handlers/handlers_test.go index a597d7a..5e89eb3 100644 --- a/internal/handlers/handlers_test.go +++ b/internal/handlers/handlers_test.go @@ -2,11 +2,13 @@ package handlers import ( "context" + "log/slog" "net/http" "net/http/httptest" "os" "testing" + "demoon/config" "github.com/playwright-community/playwright-go" "github.com/stretchr/testify/assert" ) @@ -17,7 +19,7 @@ func TestQuestionFlow(t *testing.T) { // Setup test server h := NewHandlers( config.Config{}, - slog.New(slog.NewJSONHandler(os.Stdout, nil), + slog.New(slog.NewJSONHandler(os.Stdout, nil)), &MockRepo{}, ) ts := httptest.NewServer(http.HandlerFunc(h.MainPage)) -- cgit v1.2.3