import { describe, it, expect } from 'vitest';
import { buildAlertsTreeNodes } from './sidebar-utils';

describe('buildAlertsTreeNodes', () => {
  it('returns 3 entries with inbox/rules/silences paths', () => {
    const nodes = buildAlertsTreeNodes();
    expect(nodes).toHaveLength(3);
    const paths = nodes.map((n) => n.path);
    expect(paths).toEqual([
      '/alerts/inbox',
      '/alerts/rules',
      '/alerts/silences',
    ]);
  });
});
