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

describe('UiTableBody', () => {
  test('renders tbody with custom class', () => {
    const { container } = render(UiTableBody, {
      props: { class: 'custom-tbody' },
      slots: {
        default: '<tr><td>Cell</td></tr>',
      },
    });

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