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 { normalizeMobileRichMarkdownKeyboardInset } from './mobile-rich-markdown-editor-keyboard-inset'
describe('normalizeMobileRichMarkdownKeyboardInset', () => {
it('rounds finite inset measurements for native layout', () => {
expect(normalizeMobileRichMarkdownKeyboardInset(42.6)).toBe(43)
})
it('clamps negative inset measurements to zero', () => {
expect(normalizeMobileRichMarkdownKeyboardInset(-8)).toBe(0)
})
it('rejects non-finite inset measurements', () => {
expect(normalizeMobileRichMarkdownKeyboardInset(Number.NaN)).toBeNull()
expect(normalizeMobileRichMarkdownKeyboardInset(Number.POSITIVE_INFINITY)).toBeNull()
})
})