import '@testing-library/jest-dom/vitest';
import { render } from '@testing-library/vue';
import { describe, expect, test } from 'vitest';
import UiTableHeader from '../UiTableHeader.vue';

describe('UiTableHeader', () => {
  test('renders thead with custom class', () => {
    const { container } = render(UiTableHeader, {
      props: { class: 'custom-header' },
      slots: {
        default: '<tr><th>Header Cell</th></tr>',
      },
    });

    const thead = container.querySelector('thead');
    expect(thead).toBeInTheDocument();
    expect(thead).toHaveClass('custom-header');
  });
});
