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.

514 B
Raw Blame
import { describe, expect, it } from 'vitest'
import {
  MIN_TERMINAL_LINE_HEIGHT,
  normalizeTerminalLineHeight
} from './terminal-line-height-settings'

describe('normalizeTerminalLineHeight', () => {
  it.each([
    [undefined, MIN_TERMINAL_LINE_HEIGHT],
    [Number.NaN, MIN_TERMINAL_LINE_HEIGHT],
    [0.85, MIN_TERMINAL_LINE_HEIGHT],
    [1, 1],
    [1.35, 1.35],
    [3, 3],
    [4, 3]
  ])('normalizes %s to %s', (input, expected) => {
    expect(normalizeTerminalLineHeight(input)).toBe(expected)
  })
})