summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrail Finder (aider) <wohilas@gmail.com>2025-03-29 16:14:20 +0300
committerGrail Finder (aider) <wohilas@gmail.com>2025-03-29 16:14:20 +0300
commit9101f684d0121984061c3786759622a270edf0f6 (patch)
treef6ef5a1173eedb710b0e43040f6d2dc37143241e
parentdc27342f9d28a82045d691351f38ce7f42712e79 (diff)
fix: add missing imports and fix syntax in test handler setup
-rw-r--r--internal/handlers/handlers_test.go4
1 files changed, 3 insertions, 1 deletions
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))