test: fix Checklist tests

This commit is contained in:
mkorwel
2026-04-18 01:57:32 +00:00
parent b695467f94
commit 20b5884e63
@@ -20,6 +20,9 @@ describe('<Checklist />', () => {
it('renders nothing when list is empty', async () => {
const { lastFrame } = await render(
<Checklist title="Test List" items={[]} isExpanded={true} />,
undefined,
undefined,
true,
);
expect(lastFrame({ allowEmpty: true })).toBe('');
});
@@ -31,6 +34,9 @@ describe('<Checklist />', () => {
];
const { lastFrame } = await render(
<Checklist title="Test List" items={inactiveItems} isExpanded={false} />,
undefined,
undefined,
true,
);
expect(lastFrame({ allowEmpty: true })).toBe('');
});