package views import ( "net/http/httptest" "strings" "testing" "hearthforge/internal/config" g "maragu.dev/gomponents" ) func TestLayoutAnonymous(t *testing.T) { cfg := &config.Config{OwnerDisplayName: "Admin"} rec := httptest.NewRecorder() Render(rec, 200, Layout(Page{Title: "Sign in", Cfg: cfg}, g.Text("body"))) body := rec.Body.String() for _, want := range []string{ "", "