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.

932 B
Raw Blame
import { describe, expect, it } from 'vitest'
import {
  activatedAtWorkspaceRoot,
  createdTerminalDesktopWarning
} from './session-write-reply-schema'

describe('optional phone startup-folder result', () => {
  it.each([undefined, null, {}, { startupCwdFallback: true }, { startupCwdFallback: 'future' }])(
    'ignores an absent or unknown extension: %j',
    (raw) => {
      expect(activatedAtWorkspaceRoot(raw)).toBe(false)
    }
  )
  it('keeps the desktop warning sentinel independent from the activation notice', () => {
    const result = { warning: 'desktop-tab-not-shown', startupCwdFallback: 'workspace-root' }
    expect(createdTerminalDesktopWarning(result)).toBe(true)
    expect(activatedAtWorkspaceRoot(result)).toBe(true)
    expect(activatedAtWorkspaceRoot({ warning: 'desktop-tab-not-shown' })).toBe(false)
    expect(createdTerminalDesktopWarning({ startupCwdFallback: 'workspace-root' })).toBe(false)
  })
})