import { describe, it, expect } from 'vitest'
import { render, screen } from '@testing-library/react'
import StatsGrid from '../components/dashboard/StatsGrid'

describe('StatsGrid', () => {
  it('renders all four stat cards', () => {
    render(<StatsGrid scanned={42} alerts={3} keywords={5} uptime="1h 2m" />)
    expect(screen.getByText('42')).toBeTruthy()
    expect(screen.getByText('3')).toBeTruthy()
    expect(screen.getByText('5')).toBeTruthy()
    expect(screen.getByText('1h 2m')).toBeTruthy()
  })
})
