import React from 'react';
import { render, screen } from '@testing-library/react';
import { Badge } from './';
describe('Badge component', () => {
describe('given default props', () => {
it('should display the content of the badge', () => {
render(12);
expect(screen.getByText('12')).toBeVisible();
});
});
describe('given a `className` props', () => {
it("adds it to the component's classnames", () => {
render(
12
,
);
expect(screen.getByText('12')).toHaveClass('MyBadge');
});
});
});