mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-06 08:07:42 -07:00
test: fix useCommandCompletion tests
This commit is contained in:
@@ -217,6 +217,7 @@ describe('useCommandCompletion', () => {
|
||||
shellModeActive={shellModeActive}
|
||||
active={active}
|
||||
/>,
|
||||
{ allowEmptyFrame: true },
|
||||
);
|
||||
return {
|
||||
result: {
|
||||
@@ -833,7 +834,7 @@ describe('useCommandCompletion', () => {
|
||||
hookResult = { ...completion, textBuffer };
|
||||
return null;
|
||||
}
|
||||
await renderWithProviders(<TestComponent />);
|
||||
await renderWithProviders(<TestComponent />, { allowEmptyFrame: true });
|
||||
|
||||
// Should not trigger prompt completion for comments
|
||||
await waitFor(() => {
|
||||
@@ -868,7 +869,7 @@ describe('useCommandCompletion', () => {
|
||||
hookResult = { ...completion, textBuffer };
|
||||
return null;
|
||||
}
|
||||
await renderWithProviders(<TestComponent />);
|
||||
await renderWithProviders(<TestComponent />, { allowEmptyFrame: true });
|
||||
|
||||
// Should not trigger prompt completion for comments
|
||||
await waitFor(() => {
|
||||
@@ -903,7 +904,7 @@ describe('useCommandCompletion', () => {
|
||||
hookResult = { ...completion, textBuffer };
|
||||
return null;
|
||||
}
|
||||
await renderWithProviders(<TestComponent />);
|
||||
await renderWithProviders(<TestComponent />, { allowEmptyFrame: true });
|
||||
|
||||
// This test verifies that comments are filtered out while regular text is not
|
||||
await waitFor(() => {
|
||||
|
||||
Reference in New Issue
Block a user