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 and apiKeys as proOnly', () => {
    const glossaries = baseNavItems.find(item => item.href === '/dashboard/glossaries');
    const apiKeys = baseNavItems.find(item => item.href === '/dashboard/api-keys');
    expect(glossaries?.proOnly).toBe(true);
    expect(apiKeys?.proOnly).toBe(true);
  });
});
