import { describe, expect, it } from 'vitest';
import { buildTaskSectionCounts } from './taskSectionCounts';

describe('buildTaskSectionCounts', () => {
  it('maps summary values in a stable order', () => {
    const counts = buildTaskSectionCounts({ assigned: 2, library: 5, collections: 3, emotions: 1 });
    expect(counts).toEqual([
      { key: 'assigned', count: 2 },
      { key: 'library', count: 5 },
      { key: 'collections', count: 3 },
      { key: 'emotions', count: 1 },
    ]);
  });
});
