mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-16 14:53:19 -07:00
test: fix ExitWarning tests
This commit is contained in:
@@ -24,7 +24,12 @@ describe('ExitWarning', () => {
|
||||
ctrlCPressedOnce: false,
|
||||
ctrlDPressedOnce: false,
|
||||
} as unknown as UIState);
|
||||
const { lastFrame, unmount } = await render(<ExitWarning />);
|
||||
const { lastFrame, unmount } = await render(
|
||||
<ExitWarning />,
|
||||
undefined,
|
||||
undefined,
|
||||
true,
|
||||
);
|
||||
expect(lastFrame({ allowEmpty: true })).toBe('');
|
||||
unmount();
|
||||
});
|
||||
@@ -57,7 +62,12 @@ describe('ExitWarning', () => {
|
||||
ctrlCPressedOnce: true,
|
||||
ctrlDPressedOnce: true,
|
||||
} as unknown as UIState);
|
||||
const { lastFrame, unmount } = await render(<ExitWarning />);
|
||||
const { lastFrame, unmount } = await render(
|
||||
<ExitWarning />,
|
||||
undefined,
|
||||
undefined,
|
||||
true,
|
||||
);
|
||||
expect(lastFrame({ allowEmpty: true })).toBe('');
|
||||
unmount();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user