summaryrefslogtreecommitdiff
path: root/internal/handlers/handlers_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/handlers_test.go')
-rw-r--r--internal/handlers/handlers_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/handlers/handlers_test.go b/internal/handlers/handlers_test.go
index 7b18cf1..93afba5 100644
--- a/internal/handlers/handlers_test.go
+++ b/internal/handlers/handlers_test.go
@@ -14,6 +14,7 @@ import (
"testing"
"time"
+ "github.com/alexedwards/scs/v2"
"github.com/go-chi/chi/v5"
"task-dashboard/internal/config"
@@ -80,6 +81,7 @@ func setupTestHandler(t *testing.T) (*Handler, func()) {
store: db,
renderer: newTestRenderer(),
config: &config.Config{CacheTTLMinutes: 5},
+ sessions: scs.New(),
}
return h, cleanup