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

describe('<RangeSkeleton>', () => {
  it('renders without crashing', () => {
    const { container } = render(<RangeSkeleton />)
    expect(
      container.querySelectorAll('.MuiSkeleton-root').length,
    ).toBeGreaterThan(0)
  })

  it('scales with count', () => {
    const { container } = render(<RangeSkeleton count={2} />)
    expect(container.firstChild).not.toBeNull()
  })
})
