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.

729 B
Raw Blame
import { describe, expect, it, vi } from 'vitest'

vi.mock('react-native', () => ({
  StyleSheet: { create: <T>(styles: T) => styles },
  View: 'View'
}))

import { colors } from '../theme/mobile-theme'
import { statusDotColor } from './StatusDot'

describe('statusDotColor', () => {
  it('keeps Relay progress amber when the raw state is disconnected', () => {
    expect(
      statusDotColor('disconnected', {
        kind: 'normal',
        label: 'Connecting via Relay…',
        dialing: true
      })
    ).toBe(colors.statusAmber)
  })

  it('keeps an idle disconnected host gray', () => {
    expect(statusDotColor('disconnected', { kind: 'normal', label: 'Disconnected' })).toBe(
      colors.textMuted
    )
  })
})