Skip to content

The agent that grows with you

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

import { composerInputWidthClass } from './composer-utils'

describe('composerInputWidthClass', () => {
  it('fills the unstacked 1fr grid track instead of the 8rem inline floor', () => {
    expect(composerInputWidthClass(false)).toBe('w-full min-w-0')
    expect(composerInputWidthClass(false)).not.toContain('composer-input-inline-min-width')
    expect(composerInputWidthClass(false)).not.toContain('flex-1')
  })

  it('keeps the stacked editor full-width', () => {
    expect(composerInputWidthClass(true)).toBe('w-full')
  })
})