nexxtway/react-rainbow

View on GitHub
examples/create-react-app/src/pages/Button/__test__/button.spec.js

Summary

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

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