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.

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

const host = vi.hoisted(() => ({ os: 'android' }))
vi.mock('react-native', () => ({ Platform: { OS: 'web' } }))
vi.mock('../platform/host-os', () => ({ hostOs: () => host.os }))

const { reopensFocusedInputWhenKeyboardHidden } =
  await import('./terminal-live-input-keyboard-reopen')

describe('reopening a focused live input whose keyboard is hidden', () => {
  it("follows the phone's OS on the page, which runs as web", () => {
    host.os = 'android'
    expect(reopensFocusedInputWhenKeyboardHidden()).toBe(true)
    host.os = 'ios'
    expect(reopensFocusedInputWhenKeyboardHidden()).toBe(false)
  })
})