mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-10 19:37:17 -07:00
test: fix SubagentGroupDisplay tests
This commit is contained in:
@@ -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('');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user