From db8ca1fe26a36b78074a424ae657b2cbb9b3af19 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 18 Jul 2026 03:40:02 -0400 Subject: feat(admin): admin color page more accurately represents game --- internal/admin/api_colors_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'internal/admin/api_colors_test.go') diff --git a/internal/admin/api_colors_test.go b/internal/admin/api_colors_test.go index d1e5e9a..cb63714 100644 --- a/internal/admin/api_colors_test.go +++ b/internal/admin/api_colors_test.go @@ -44,7 +44,7 @@ func TestColorsGet(t *testing.T) { t.Fatalf("categories count: got %d want %d", len(cats), len(colorCategories)) } preview, _ := out["preview"].([]any) - if len(preview) < 8 { + if len(preview) < 6 { t.Fatalf("preview sections too few: %d", len(preview)) } } @@ -151,6 +151,11 @@ func TestColorsPreviewExhaustive(t *testing.T) { } } for _, cat := range colorCategories { + if cat.Name == "currency_pickup" || + cat.Name == "map_blocked" || cat.Name == "sequence" || + cat.Name == "science_mod" { + continue + } if !seen[cat.Name] { t.Errorf("preview missing category: %s", cat.Name) } -- cgit v1.2.3