11 lines
328 B
JavaScript
11 lines
328 B
JavaScript
import React from 'react';
|
|
import renderer from 'react-test-renderer';
|
|
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();
|
|
});
|
|
});
|