2022-04-04 08:53:47 -07:00
|
|
|
import React from 'react';
|
|
|
|
|
2024-08-28 04:41:08 -07:00
|
|
|
import { render, screen } from 'pl-fe/jest/test-helpers';
|
2023-10-02 12:27:40 -07:00
|
|
|
|
|
|
|
import Badge from './badge';
|
2022-04-04 08:53:47 -07:00
|
|
|
|
|
|
|
describe('<Badge />', () => {
|
|
|
|
it('renders correctly', () => {
|
|
|
|
render(<Badge slug='patron' title='Patron' />);
|
|
|
|
|
|
|
|
expect(screen.getByTestId('badge')).toHaveTextContent('Patron');
|
|
|
|
});
|
|
|
|
});
|