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.

912 B
Raw Blame
import { describe, expect, it } from 'vitest'
import {
  DEFAULT_SOURCE_CONTROL_GROUP_ORDER,
  normalizeSourceControlGroupOrder
} from './source-control-group-order'

describe('normalizeSourceControlGroupOrder', () => {
  it('keeps supported source control group orders', () => {
    expect(normalizeSourceControlGroupOrder('changes-first')).toBe('changes-first')
    expect(normalizeSourceControlGroupOrder('staged-first')).toBe('staged-first')
  })

  it('maps the legacy untracked-first preference to combined Changes first', () => {
    expect(normalizeSourceControlGroupOrder('untracked-first')).toBe('changes-first')
  })

  it('falls back to the default for malformed values', () => {
    expect(normalizeSourceControlGroupOrder('tracked-first')).toBe(
      DEFAULT_SOURCE_CONTROL_GROUP_ORDER
    )
    expect(normalizeSourceControlGroupOrder(undefined)).toBe(DEFAULT_SOURCE_CONTROL_GROUP_ORDER)
  })
})