import { render, screen } from '@test-utils';
import PrismThemeToggle from './prism-theme-toggle';

describe('PrismThemeToggle', () => {
  it('renders a checked toggle (dark theme choice)', () => {
    render(<PrismThemeToggle value={true} />);
    expect(
      screen.getByRole('checkbox', {
        name: `Code blocks: Light theme Dark theme`,
      })
    ).toBeChecked();
  });
});
