2020-06-09 19:29:50 -07:00
|
|
|
import React from 'react';
|
|
|
|
import renderer from 'react-test-renderer';
|
2022-01-10 14:25:06 -08:00
|
|
|
|
2020-06-09 19:29:50 -07:00
|
|
|
import Badge from '../badge';
|
|
|
|
|
|
|
|
describe('<Badge />', () => {
|
|
|
|
it('renders correctly', () => {
|
|
|
|
const component = renderer.create(<Badge slug='patron' title='Patron' />);
|
|
|
|
const tree = component.toJSON();
|
|
|
|
expect(tree).toMatchSnapshot();
|
|
|
|
});
|
|
|
|
});
|