import React from 'react';
import { render, screen } from '../../test-utils';
import { Pill } from '.';
describe('', () => {
it('renders the correct text and variant', () => {
const text = 'Hello';
render(
{text}
,
);
const pillTypography = screen.getByTestId(
`Pill-PillTypography-regular-error500-bodySmallMedium`,
);
expect(pillTypography).toHaveTextContent(text);
});
it('renders the correct className', () => {
const className = 'my-custom-class';
render(
Hello
,
);
const pillBox = screen.getByTestId('Pill-PillBox');
expect(pillBox).toHaveClass(className);
});
});