refactor: remove width prop from Card component and add as const to test array.

This commit is contained in:
Mark McLaughlin
2026-02-05 11:07:19 -08:00
parent 254bdbc027
commit 5dfcab609a
2 changed files with 3 additions and 9 deletions

View File

@@ -17,6 +17,7 @@ describe('Card', () => {
suffix: '0.26.0 → 0.27.0',
prefix: true,
body: 'Installed via Homebrew. Please update with "brew upgrade gemini-cli".',
width: 40,
},
{
variant: 'information',
@@ -46,17 +47,11 @@ describe('Card', () => {
prefix: true,
body: 'Listed 39 item(s).',
},
])(
] as const)(
'renders a $variant card with prefix=$prefix',
({ variant, title, suffix, prefix, body }) => {
const { lastFrame } = render(
<Card
variant={variant}
title={title}
suffix={suffix}
prefix={prefix}
width={80}
>
<Card variant={variant} title={title} suffix={suffix} prefix={prefix}>
<Text>{body}</Text>
</Card>,
);