mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
Add read-only orca linear CLI with trusted launch-prompt pointer (V1) (#5126)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import type { LinearSearchResult } from '../shared/linear-agent-access'
|
||||
import { printLinearSearchWarnings } from './linear-format'
|
||||
|
||||
describe('linear-format', () => {
|
||||
beforeEach(() => {
|
||||
vi.restoreAllMocks()
|
||||
vi.spyOn(console, 'error').mockImplementation(() => {})
|
||||
})
|
||||
|
||||
it('treats older search results without workspaceErrors as non-partial', () => {
|
||||
const result = {
|
||||
issues: [],
|
||||
meta: {
|
||||
query: 'auth',
|
||||
workspaceId: 'all',
|
||||
limit: 20,
|
||||
returned: 0,
|
||||
limitReached: false,
|
||||
partial: false
|
||||
}
|
||||
} as unknown as LinearSearchResult
|
||||
|
||||
printLinearSearchWarnings(result)
|
||||
|
||||
expect(console.error).not.toHaveBeenCalled()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user