nexxtway/react-rainbow

View on GitHub
examples/create-react-app/src/pages/Avatar/__test__/avatar.spec.js

Summary

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

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