Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

646 B
Raw Blame
import { describe, expect, it, vi } from 'vitest'
import { listAllOrchestrationRuns } from './orchestration-run-pages'

describe('orchestration Run pagination compatibility', () => {
  it('stops after an old server response without nextCursor', async () => {
    const call = vi.fn().mockResolvedValue({
      result: { runs: [{ id: 'run_old', objective: 'Old server Run' }] }
    })

    await expect(listAllOrchestrationRuns({ call })).resolves.toEqual([
      { id: 'run_old', objective: 'Old server Run' }
    ])
    expect(call).toHaveBeenCalledTimes(1)
    expect(call).toHaveBeenCalledWith('orchestration.runList', { limit: 100 })
  })
})