nexxtway/react-rainbow

View on GitHub
examples/create-react-app/src/pages/Badge/__test__/badge.spec.js

Summary

Maintainability
A
1 hr
Test Coverage
import React from 'react';
import { shallow } from 'enzyme';
import Badge from 'react-rainbow-components/components/Badge';
import BadgeExample from './../';

describe('<BadgeExample/>', () => {
    it('should render the badge', () => {
        const component = shallow(<BadgeExample />);
        expect(component.find(Badge).exists()).toBe(true);
    });
});