diff options
| author | historia <[not public]> | 2026-07-18 03:40:02 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-18 03:40:02 -0400 |
| commit | db8ca1fe26a36b78074a424ae657b2cbb9b3af19 (patch) | |
| tree | 9219f320de74f27cb5491e3cb6b0258c5713f0cb /internal/admin/api_colors_test.go | |
| parent | 467944adfa41673a3758d9622873abbe7ae35a49 (diff) | |
| download | thehouseoficarus-db8ca1fe26a36b78074a424ae657b2cbb9b3af19.tar.gz | |
feat(admin): admin color page more accurately represents game
Diffstat (limited to 'internal/admin/api_colors_test.go')
| -rw-r--r-- | internal/admin/api_colors_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
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) } |
