Show Greatest inclusion reasons on catalog tiles

This commit is contained in:
Codex committed 2026-10-09 10:25:18 +02:00
1 parent f713d0c0a9
commit bedd0bc3b3
6 files changed
+26 -11

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ test('curated manga catalog has unique identities and ordered five-year periods'
assert.equal(catalog.periods.length, 13);
assert.equal(catalog.entries.length, 106);
assert.ok(catalog.entries.every(entry => /^https:\/\//.test(entry.cover)), 'Every catalog title has cover artwork');
assert.ok(catalog.entries.every(entry => entry.note?.length >= 45 && /[.!?]$/.test(entry.note)), 'Every catalog title has a complete reason for inclusion');
for (const [index, period] of catalog.periods.entries()) {
const entries = catalog.entries.filter(entry => entry.period === period);
assert.ok(entries.length >= 5 && entries.length <= 10);