mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 00:03:47 +00:00
test: account for alternateScreen flag in empty headless snapshot assertions
The alt-screen scrollback fix threads an alternateScreen flag through the headless snapshot return type. Two sibling empty-buffer tests used exact toEqual() assertions that did not include the new (legitimately false) key. Update them to reflect the correct snapshot shape.
This commit is contained in:
@@ -227,7 +227,10 @@ describe('mobile subscribe integration', () => {
|
||||
cols: 90,
|
||||
rows: 30,
|
||||
seq: 17,
|
||||
source: 'headless'
|
||||
source: 'headless',
|
||||
// Non-alt-screen buffer reports alternateScreen=false so the renderer
|
||||
// keeps its destructive scrollback clear on restore.
|
||||
alternateScreen: false
|
||||
})
|
||||
await expect(runtime.serializeTerminalBuffer('pty-empty')).resolves.toBeNull()
|
||||
})
|
||||
|
||||
@@ -5267,7 +5267,10 @@ describe('OrcaRuntimeService', () => {
|
||||
cols: 90,
|
||||
rows: 30,
|
||||
seq: 17,
|
||||
source: 'headless'
|
||||
source: 'headless',
|
||||
// Non-alt-screen buffer reports alternateScreen=false so the renderer
|
||||
// keeps its destructive scrollback clear on restore.
|
||||
alternateScreen: false
|
||||
})
|
||||
expect(serializeBuffer).not.toHaveBeenCalled()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user