package auth import ( "bytes" "html/template" "net/http" "net/http/httptest" "net/url" "os" "path/filepath" "strings" "testing" "time" ) func TestLoginPageRenders(t *testing.T) { handler, _, _ := newTestHandler(t) request := httptest.NewRequest(http.MethodGet, "/login", nil) response := httptest.NewRecorder() handler.LoginPage(response, request) if response.Code != http.StatusOK { t.Fatalf("expected 200, got %d", response.Code) } if body := response.Body.String(); !strings.Contains(body, `