refactor(events): display only editorial event management
This commit is contained in:
1 parent
45a8c883db
commit
bdc0571a66
1 file changed
-15
@@ -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 := `[{
|
||||
|
||||
Reference in new issue
Block a user