bigbuffet-rw/app/soapbox/components/__tests__/badge.test.tsx
marcin mikołajczak 7b5114a1b8 prefer TypeScript for tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-12 23:07:06 +02:00

12 lines
313 B
TypeScript

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