import { describe, it, expect } from 'vitest';
import { tabAppearClass } from './detailTabs';

describe('tabAppearClass', () => {
  it('emphasizes only the browser and ssh tabs (the conditional, session-live tabs)', () => {
    expect(tabAppearClass('browser')).toBe('tab-appear-emphasis');
    expect(tabAppearClass('ssh')).toBe('tab-appear-emphasis');
  });

  it('does not emphasize always-present tabs', () => {
    for (const id of ['overview', 'activity', 'files', 'trace', 'chat'] as const) {
      expect(tabAppearClass(id)).toBe('');
    }
  });
});
