mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-21 03:21:11 -07:00
Support paste markers split across writes. (#11977)
This commit is contained in:
committed by
GitHub
parent
81006605c8
commit
145e099ca5
@@ -1331,7 +1331,7 @@ describe('InputPrompt', () => {
|
||||
await wait();
|
||||
|
||||
stdin.write('\x1B');
|
||||
await wait();
|
||||
await wait(100);
|
||||
|
||||
expect(props.buffer.setText).toHaveBeenCalledWith('');
|
||||
expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
|
||||
@@ -1372,7 +1372,7 @@ describe('InputPrompt', () => {
|
||||
await wait();
|
||||
|
||||
stdin.write('\x1B');
|
||||
await wait();
|
||||
await wait(100);
|
||||
|
||||
expect(props.setShellModeActive).toHaveBeenCalledWith(false);
|
||||
unmount();
|
||||
@@ -1392,7 +1392,7 @@ describe('InputPrompt', () => {
|
||||
await wait();
|
||||
|
||||
stdin.write('\x1B');
|
||||
await wait();
|
||||
await wait(100);
|
||||
|
||||
expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
|
||||
unmount();
|
||||
|
||||
@@ -1348,7 +1348,7 @@ describe('SettingsDialog', () => {
|
||||
|
||||
// Press Escape to exit
|
||||
stdin.write('\u001B');
|
||||
await wait();
|
||||
await wait(100);
|
||||
|
||||
expect(onSelect).toHaveBeenCalledWith(undefined, 'User');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user