test: fix SubagentGroupDisplay tests

This commit is contained in:
mkorwel
2026-04-17 23:08:04 +00:00
parent 711f085081
commit ab9d859b67
@@ -67,6 +67,7 @@ describe('<SubagentGroupDisplay />', () => {
const renderSubagentGroup = async (
toolCallsToRender: IndividualToolCallDisplay[],
height?: number,
allowEmptyFrame = false,
) =>
renderWithProviders(
<SubagentGroupDisplay
@@ -75,10 +76,11 @@ describe('<SubagentGroupDisplay />', () => {
availableTerminalHeight={height}
isExpandable={true}
/>,
{ allowEmptyFrame },
);
it('renders nothing if there are no agent tool calls', async () => {
const { lastFrame } = await renderSubagentGroup([], 40);
const { lastFrame } = await renderSubagentGroup([], 40, true);
expect(lastFrame({ allowEmpty: true })).toBe('');
});