Always list the day's actual winner first in getDayLabel
The anchor-day and plain-temporal-fallback branches were listing any commemorated saint before the winning identity, so a lower-ranked saint merely riding along as a commemoration (e.g. St. Andrew on Advent I, or Ss. Tryphon/Respicius/Nympha on an ordinary Sunday) read as if it were the day's own winner, with the actual winner's rank label dangling at the end with no name attached. The winner should always lead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ME8QNPdEmHSbSx1r6VmDRG
This commit is contained in:
@@ -114,7 +114,7 @@ describe('resolveOrdo("compline", ...)', () => {
|
||||
const eve = resolveOrdo('compline', '2025-11-29');
|
||||
const last = eve.parts[eve.parts.length - 1];
|
||||
expect(last?.kind === 'preces' ? last.label : undefined).toBe('Alma Redemptoris Mater');
|
||||
expect(eve.dayLabel?.en).toBe('St. Andrew, Apostle — The 1st Sunday of Advent (Semiduplex)');
|
||||
expect(eve.dayLabel?.en).toBe('The 1st Sunday of Advent (Semiduplex) — St. Andrew, Apostle');
|
||||
|
||||
const dayBefore = resolveOrdo('compline', '2025-11-28');
|
||||
const lastBefore = dayBefore.parts[dayBefore.parts.length - 1];
|
||||
|
||||
Reference in New Issue
Block a user