test(coverage): drive browser tests to 80% on all metrics (#496) #505
@@ -135,8 +135,9 @@ describe('persons/[id] page', () => {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
// Just verify the page renders without error — the self-skip branch is exercised
|
// Self-skip branch: the self-letter is rendered without re-rendering the sender chip.
|
||||||
expect(() => render(PersonDetailPage, { props: { data } })).not.toThrow();
|
render(PersonDetailPage, { props: { data } });
|
||||||
|
expect(document.body.textContent).toContain('Self-letter');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('renders the GeschichtenCard when geschichten array has items', async () => {
|
it('renders the GeschichtenCard when geschichten array has items', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user