feat: close the shift with a Thoreau quote in the end letterbox
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user