mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
Updated tests for ShellToolMessage
This commit is contained in:
@@ -181,7 +181,7 @@ describe('<ShellToolMessage />', () => {
|
|||||||
[
|
[
|
||||||
'respects availableTerminalHeight when it is smaller than ACTIVE_SHELL_MAX_LINES',
|
'respects availableTerminalHeight when it is smaller than ACTIVE_SHELL_MAX_LINES',
|
||||||
10,
|
10,
|
||||||
8,
|
3, // 10 - 1 (static) - 6 (ASB reserved) = 3
|
||||||
false,
|
false,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@@ -193,7 +193,7 @@ describe('<ShellToolMessage />', () => {
|
|||||||
[
|
[
|
||||||
'uses full availableTerminalHeight when focused in alternate buffer mode',
|
'uses full availableTerminalHeight when focused in alternate buffer mode',
|
||||||
100,
|
100,
|
||||||
98, // 100 - 2
|
93, // 100 - 1 (static) - 6 (ASB reserved) = 93
|
||||||
true,
|
true,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|||||||
+7
-17
@@ -133,11 +133,6 @@ exports[`<ShellToolMessage /> > Height Constraints > respects availableTerminalH
|
|||||||
"╭──────────────────────────────────────────────────────────────────────────────╮
|
"╭──────────────────────────────────────────────────────────────────────────────╮
|
||||||
│ ⊶ Shell Command A shell command │
|
│ ⊶ Shell Command A shell command │
|
||||||
│ │
|
│ │
|
||||||
│ Line 93 │
|
|
||||||
│ Line 94 │
|
|
||||||
│ Line 95 │
|
|
||||||
│ Line 96 │
|
|
||||||
│ Line 97 │
|
|
||||||
│ Line 98 │
|
│ Line 98 │
|
||||||
│ Line 99 │
|
│ Line 99 │
|
||||||
│ Line 100 █ │
|
│ Line 100 █ │
|
||||||
@@ -192,18 +187,13 @@ exports[`<ShellToolMessage /> > Height Constraints > uses full availableTerminal
|
|||||||
"╭──────────────────────────────────────────────────────────────────────────────╮
|
"╭──────────────────────────────────────────────────────────────────────────────╮
|
||||||
│ ⊶ Shell Command A shell command (Shift+Tab to unfocus) │
|
│ ⊶ Shell Command A shell command (Shift+Tab to unfocus) │
|
||||||
│ │
|
│ │
|
||||||
│ Line 3 │
|
│ Line 8 │
|
||||||
│ Line 4 │
|
│ Line 9 │
|
||||||
│ Line 5 █ │
|
│ Line 10 │
|
||||||
│ Line 6 █ │
|
│ Line 11 │
|
||||||
│ Line 7 █ │
|
│ Line 12 │
|
||||||
│ Line 8 █ │
|
│ Line 13 │
|
||||||
│ Line 9 █ │
|
│ Line 14 ▄ │
|
||||||
│ Line 10 █ │
|
|
||||||
│ Line 11 █ │
|
|
||||||
│ Line 12 █ │
|
|
||||||
│ Line 13 █ │
|
|
||||||
│ Line 14 █ │
|
|
||||||
│ Line 15 █ │
|
│ Line 15 █ │
|
||||||
│ Line 16 █ │
|
│ Line 16 █ │
|
||||||
│ Line 17 █ │
|
│ Line 17 █ │
|
||||||
|
|||||||
Reference in New Issue
Block a user