import { describe, it, expect } from 'vitest';
import { baseNavItems } from '../app/dashboard/constants';

describe('baseNavItems', () => {
  it('should have correct structure for base items', () => {
    baseNavItems.forEach(item => {
      expect(item).toHaveProperty('labelKey');
      expect(item).toHaveProperty('href');
      expect(item).toHaveProperty('icon');
    });
  });

  it('should flag glossaries as proOnly', () => {
    const glossaries = baseNavItems.find(item => item.href === '/dashboard/glossaries');
    expect(glossaries?.proOnly).toBe(true);
  });

  it('should currently omit apiKeys nav item (temporarily removed)', () => {
    // The apiKeys nav item is temporarily commented out in constants.ts.
    // If you re-enable it, update this test to assert its presence.
    const apiKeys = baseNavItems.find(item => item.href === '/dashboard/api-keys');
    expect(apiKeys).toBeUndefined();
  });
});
