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

describe('UiCardContent', () => {
  test('renders with custom class', () => {
    const { container } = render(UiCardContent, {
      props: { class: 'custom-content' },
      slots: {
        default: '<p>Card content</p>',
      },
    });

    const content = container.querySelector('[data-slot="card-content"]');
    expect(content).toBeInTheDocument();
    expect(content).toHaveClass('custom-content');
  });
});
