12 lines
313 B
TypeScript
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');
|
|
});
|
|
});
|