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.
TypeScript adeagent-ideai-agentsautomationbotclaude-codecodexghosttygrok-bothermes-agentmobile-appmuseopenclawopencodeorchestrationpiruntimeterminalworktreesyc-backed
import { describe, expect, it } from 'vitest'
import { buildMobileFilePreviewSyntax } from './mobile-file-preview-syntax'
describe('mobile-file-preview-syntax', () => {
it('returns syntax segments for supported source paths', () => {
const syntax = buildMobileFilePreviewSyntax('src/app.ts', 'const answer = 42')
expect(syntax.language).toBe('typescript')
expect(syntax.segments).toContainEqual({ kind: 'keyword', text: 'const' })
expect(syntax.segments.map((segment) => segment.text).join('')).toBe('const answer = 42')
})
it('falls back to a plain segment when highlighting is unavailable', () => {
expect(buildMobileFilePreviewSyntax('README.unknown', 'plain text')).toEqual({
language: 'plaintext',
segments: [{ kind: 'plain', text: 'plain text' }]
})
})
})