nexxtway/react-rainbow

View on GitHub
examples/create-react-app/src/pages/ButtonIcon/__test__/buttonIcon.spec.js

Summary

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

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