feat: close the shift with a Thoreau quote in the end letterbox

This commit is contained in:
2026-10-12 18:13:06 +03:00
parent 71465fa481
commit f4d9cb0cd4
14 changed files with 108 additions and 42 deletions

View File

@@ -113,6 +113,16 @@ describe('content schemas', () => {
.toThrow(/unmanifested asset reference: missing-soundtrack/i);
});
it('accepts an optional closer quote and rejects stray or empty fields', () => {
const content = cloneContent() as Record<string, unknown>;
content.closer = { quote: 'There is more day to dawn.', attribution: 'Henry David Thoreau, Walden' };
expect(parsePortfolioContent(content).closer?.attribution).toBe('Henry David Thoreau, Walden');
content.closer = { quote: '', attribution: 'Henry David Thoreau, Walden' };
expect(() => parsePortfolioContent(content)).toThrow();
content.closer = { quote: 'x', attribution: 'y', extra: 1 };
expect(() => parsePortfolioContent(content)).toThrow();
});
it('requires audio assets to have null dimensions and a positive duration', () => {
const audio = {
id: 'soundtrack-main-opus',