refactor(events): display only editorial event management

This commit is contained in:
OpenGenesis (MPL 2.0) committed 2026-10-21 11:44:14 +02:00
1 parent 45a8c883db
commit bdc0571a66
1 file changed
-15
-15
View File
@@ -5,21 +5,6 @@ import (
"testing"
)
func TestNormalizeEventAdminTab(t *testing.T) {
tests := map[string]string{
"": "hub",
"hub": "hub",
"submissions": "submissions",
"Einsendungen": "submissions",
"unknown": "hub",
}
for input, want := range tests {
if got := normalizeEventAdminTab(input); got != want {
t.Fatalf("normalizeEventAdminTab(%q)=%q, want %q", input, got, want)
}
}
}
func TestAdminEventRowMapsSourceTypeFromDatabaseJSON(t *testing.T) {
var rows []AdminEventRow
payload := `[{