From 658807b219b4a3aec55a306d0615b86898241514 Mon Sep 17 00:00:00 2001 From: CRT Date: Wed, 14 Oct 2026 05:49:15 +0800 Subject: [PATCH] tests/teaser: the stamp check back in the safe-margin test (typecheck) --- tests/teaser.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/teaser.test.ts b/tests/teaser.test.ts index 46fcd30..f964dc2 100644 --- a/tests/teaser.test.ts +++ b/tests/teaser.test.ts @@ -293,13 +293,13 @@ describe('teaser: timing and format', () => { expect(b.y + b.h, at).toBeLessThanOrEqual(T.FORMAT.h - my); } expect(j.rejectLayout!.at(-1)!.cards.length).toBe(T.REJECTS.length); + expect(j.rejectLayout!.some(f => f.stamp)).toBe(true); }); test.skipIf(!existsSync(CHECKS))('no text overflows anywhere: every text node fits its element and its card, every card in frame, at every frame (animatic layout data)', () => { const j = JSON.parse(readFileSync(CHECKS, 'utf8')) as { duration: number; textFrames?: number; textProblems?: unknown[] }; expect(j.duration).toBe(T.DURATION); expect(j.textFrames).toBe(Math.round(T.DURATION * T.FPS)); expect(j.textProblems?.slice(0, 10)).toEqual([]); - expect(j.rejectLayout!.some(f => f.stamp)).toBe(true); }); test('the picture darkens with the rejection and lifts on the drop', () => { const r = T.SCENES.find(s => s.id === 'reject')!, b = T.SCENES.find(s => s.id === 'builds')!;