bigbuffet-rw/packages/pl-fe/src/components/badge.test.tsx
marcin mikołajczak 966b04fdf0 Call it pl-fe internally
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-28 13:41:08 +02:00

13 lines
313 B
TypeScript

import React from 'react';
import { render, screen } from 'pl-fe/jest/test-helpers';
import Badge from './badge';
describe('<Badge />', () => {
it('renders correctly', () => {
render(<Badge slug='patron' title='Patron' />);
expect(screen.getByTestId('badge')).toHaveTextContent('Patron');
});
});