propers: add November's collect and antiphon text
Deploy / deploy (push) Successful in 44s

9 collects, 3 antiphons -- including backfilling the pre-existing All
Saints entry. Also updates two pre-existing tests whose shared date
(2025-11-30, Advent I Sunday) now correctly shows St. Andrew commemorated
alongside it, confirmed against the live reference engine.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-11 06:18:12 -04:00
parent 395b7dfc1f
commit 7cc6adfb55
13 changed files with 254 additions and 3 deletions
+7 -1
View File
@@ -27,7 +27,13 @@ describe('getDayLabel — ordinal temporal label', () => {
});
it("Advent's own anchor Sunday is already week 1, not a separate anchor-week case", () => {
expect(getDayLabel(resolveDay('2025-11-30'))).toBe('The 1st Sunday of Advent');
// 2025-11-30 is also St. Andrew's own day (Duplex II. classis) — since
// the November sanctoral pull, he's correctly commemorated alongside
// Advent I rather than simply absent (confirmed against the live
// reference engine, which shows the same pairing), so the label
// reflects both, feast name first, same pattern as Trinity Sunday's
// own St. Felix I case above.
expect(getDayLabel(resolveDay('2025-11-30'))).toBe('St. Andrew, Apostle — The 1st Sunday of Advent');
expect(getDayLabel(resolveDay('2025-12-01'))).toBe('Monday in the 1st week of Advent');
});
+87
View File
@@ -0,0 +1,87 @@
import { describe, expect, it } from 'vitest';
import { resolveDay } from '../../src/calendar';
import { getDayCollect } from '../../src/hours/resolve-common';
// Clean per-annum years for these dates (no Sunday collision) — see
// data/calendar/saints/*.yml for per-saint source detail.
describe('November sanctoral pull (first pass)', () => {
it('All Saints wins outright with a real proper collect, backfilled this month', () => {
const day = resolveDay('2025-11-01');
expect(day.winner).toEqual({ kind: 'sanctoral', id: 'all-saints', name: 'All Saints', rank: 'duplex-1-classis' });
expect(getDayCollect(day).status.en).toBe('verified');
});
it('St. Martin of Tours wins outright at Duplex majus with a real proper collect and antiphon, over a genuinely unwinnable stub', () => {
const day = resolveDay('2025-11-11');
expect(day.winner).toEqual({
kind: 'sanctoral',
id: 'st-martin-of-tours',
name: 'St. Martin of Tours, Bishop and Confessor',
rank: 'duplex-majus',
});
expect(day.commemorations).toEqual([
{ kind: 'sanctoral', id: 'st-menna', name: 'St. Menna, Martyr', rank: 'simplex' },
]);
expect(getDayCollect(day).status.en).toBe('verified');
});
it('a monastic-calendar-specific reassignment (St. Emilian) displaces what the base Tridentine table gives to St. Martin I, Pope, who moves to a different date entirely', () => {
const emilianDay = resolveDay('2025-11-12');
expect(emilianDay.winner).toEqual({
kind: 'sanctoral',
id: 'st-emilian',
name: 'St. Emilian, Abbot',
rank: 'duplex',
});
const martinIDay = resolveDay('2025-11-14');
expect(martinIDay.winner).toEqual({
kind: 'sanctoral',
id: 'st-martin-i',
name: 'St. Martin I, Pope and Martyr',
rank: 'semiduplex',
});
});
it('All Saints of the Benedictine Order, a monastic-calendar-only addition absent from the base Tridentine table, wins outright at Duplex II. classis', () => {
const day = resolveDay('2025-11-13');
expect(day.winner).toEqual({
kind: 'sanctoral',
id: 'all-saints-of-the-benedictine-order',
name: 'All Saints of the Order of St. Benedict',
rank: 'duplex-2-classis',
});
expect(day.commemorations).toEqual([]);
});
it('St. Clement transfers forward into St. Chrysogonus\'s day whenever his own date falls on a Sunday -- a single-day transfer this app models correctly, unlike August\'s multi-day-skip case', () => {
const clean = resolveDay('2032-11-24'); // Nov 23, 2032 is not a Sunday
expect(clean.winner).toEqual({
kind: 'sanctoral',
id: 'st-chrysogonus',
name: 'St. Chrysogonus, Martyr',
rank: 'simplex',
});
const transferred = resolveDay('2025-11-24'); // Nov 23, 2025 IS a Sunday
expect(transferred.winner).toEqual({
kind: 'sanctoral',
id: 'st-clement',
name: 'St. Clement I, Pope and Martyr',
rank: 'semiduplex',
});
expect(transferred.commemorations).toEqual([
{ kind: 'sanctoral', id: 'st-chrysogonus', name: 'St. Chrysogonus, Martyr', rank: 'simplex' },
]);
});
it('St. Andrew wins outright at Duplex II. classis with a real proper collect and antiphon, alone', () => {
const day = resolveDay('2026-11-30');
expect(day.winner).toEqual({
kind: 'sanctoral',
id: 'st-andrew',
name: 'St. Andrew, Apostle',
rank: 'duplex-2-classis',
});
expect(day.commemorations).toEqual([]);
expect(getDayCollect(day).status.en).toBe('verified');
});
});
+4 -2
View File
@@ -86,11 +86,13 @@ describe('resolveOrdo("compline", ...)', () => {
});
it('anticipates Advent I: the Saturday evening before switches to the Alma Redemptoris Mater and shows the anticipated day label', () => {
// Nov 30, 2025 is Advent I Sunday.
// Nov 30, 2025 is Advent I Sunday -- also St. Andrew's own day
// (Duplex II. classis), correctly commemorated alongside it since the
// November sanctoral pull (see tests/calendar/day-label.test.ts).
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).toBe('The 1st Sunday of Advent');
expect(eve.dayLabel).toBe('St. Andrew, Apostle — The 1st Sunday of Advent');
const dayBefore = resolveOrdo('compline', '2025-11-28');
const lastBefore = dayBefore.parts[dayBefore.parts.length - 1];