mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
test: remove 321 low-value main and shared tests (#39429)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
This commit is contained in:
@@ -2,16 +2,6 @@ import { describe, expect, it } from 'vitest'
|
||||
import { createTerminalAgentStatusProcessor } from './terminal-agent-status-processor'
|
||||
|
||||
describe('createTerminalAgentStatusProcessor', () => {
|
||||
it('appends OSC 7501 projections, marks them, and leaves the sequence in the stream', () => {
|
||||
const process = createTerminalAgentStatusProcessor()
|
||||
const data = 'x\x1b]7501;state=working:app=codex\x1b\\y'
|
||||
const result = process(data)
|
||||
expect(result.cleanData).toBe(data)
|
||||
expect(result.payloads).toMatchObject([{ state: 'working', agentType: 'codex' }])
|
||||
expect(result.programStatusPayloads?.has(result.payloads[0])).toBe(true)
|
||||
expect(result.lastPayloadCleanOffset).toBe(data.length - 1)
|
||||
})
|
||||
|
||||
it('merges OSC 9999 and OSC 7501 in one chunk, leaving titles untouched', () => {
|
||||
const process = createTerminalAgentStatusProcessor()
|
||||
const report = '\x1b]7501;state=working:app=claude-code\x1b\\'
|
||||
@@ -37,14 +27,6 @@ describe('createTerminalAgentStatusProcessor', () => {
|
||||
expect(activity(osc('state=clear'))).toEqual([null])
|
||||
})
|
||||
|
||||
it('places each activity change at the end of its report in the clean output', () => {
|
||||
const process = createTerminalAgentStatusProcessor()
|
||||
const report = '\x1b]7501;state=working:app=x\x1b\\'
|
||||
expect(process(`ab${report}cd`).programActivity).toEqual([
|
||||
{ offset: 2 + report.length, activity: 'working' }
|
||||
])
|
||||
})
|
||||
|
||||
it('keeps OSC 9999 and OSC 7501 payloads in byte order', () => {
|
||||
const process = createTerminalAgentStatusProcessor()
|
||||
const osc9999Report = (state: string) => `\x1b]9999;{"state":"${state}"}\x07`
|
||||
|
||||
Reference in New Issue
Block a user