import React from 'react'; import { render, screen } from '@testing-library/react'; import { Badge } from './Badge'; describe('Badge', () => { it('supports custom children', () => { render(Custom Text - 1); expect(screen.getByText('Custom Text - 1')).toBeVisible(); }); it('supports custom themes and children', () => { render(Custom Text - 2); expect(screen.getByText('Custom Text - 2')).toHaveClass('Badge--klein-blue'); }); });