This commit is contained in:
41666 2025-03-27 10:19:25 -07:00
parent 7b8cdcfd7b
commit 143caaac2b
9 changed files with 115 additions and 10 deletions

View file

@ -56,6 +56,8 @@ func TestPostHandler(t *testing.T) {
func TestPostHandlerIntegration(t *testing.T) {
i, dsm, key := makeInteractions(t)
app := roleypoly.CreateFiberApp()
// Tests that everything works including auth middleware
sessionMiddleware, sessionStore := session.NewWithStore()
sessionStore.RegisterType(authmiddleware.Session{})
app.Use(sessionMiddleware)