import { describe, it, expect } from 'vitest'
import { mount } from '@vue/test-utils'
import BaseCard from '@/components/BaseCard.vue'

describe('BaseCard', () => {
  it('renders slot content inside .card', () => {
    const wrapper = mount(BaseCard, { slots: { default: 'hello' } })
    expect(wrapper.find('.card').exists()).toBe(true)
    expect(wrapper.text()).toContain('hello')
  })

  it('forwards $attrs onto the root element', () => {
    const wrapper = mount(BaseCard, { attrs: { 'data-testid': 'x' } })
    expect(wrapper.find('.card').attributes('data-testid')).toBe('x')
  })
})
