import { describe, it, expect } from 'vitest'
import { render } from '@testing-library/react'
import { MarkdownSkeleton } from './skeleton'

describe('<MarkdownSkeleton>', () => {
  it('renders the default 5 line stubs', () => {
    const { container } = render(<MarkdownSkeleton />)
    expect(container.querySelectorAll('.MuiSkeleton-root').length).toBe(5)
  })

  it('honours custom line count', () => {
    const { container } = render(<MarkdownSkeleton lines={2} />)
    expect(container.querySelectorAll('.MuiSkeleton-root').length).toBe(2)
  })
})
