mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-15 20:40:35 -07:00
fix(core): detect uninitialized lines (#24646)
This commit is contained in:
@@ -30,11 +30,12 @@ describe('terminalSerializer', () => {
|
||||
allowProposedApi: true,
|
||||
});
|
||||
const result = serializeTerminalToObject(terminal);
|
||||
expect(result).toHaveLength(24);
|
||||
expect(result).toHaveLength(1);
|
||||
result.forEach((line) => {
|
||||
// Expect each line to be either empty or contain a single token with spaces
|
||||
// Actually, the first cell will have inverse: true (cursor), so it will have multiple tokens
|
||||
if (line.length > 0) {
|
||||
expect(line[0].text.trim()).toBe('');
|
||||
expect(line[line.length - 1].text.trim()).toBe('');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user