Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

383 B
Raw Blame
import { describe, expect, it } from 'vitest'
import { concatChunks } from './pcm-capture'

describe('concatChunks', () => {
  it('concatenates in order', () => {
    const out = concatChunks([new Float32Array([1, 2]), new Float32Array([3])])
    expect(Array.from(out)).toEqual([1, 2, 3])
  })
  it('handles empty input', () => {
    expect(concatChunks([]).length).toBe(0)
  })
})