import React from 'react'; import {shallow} from 'enzyme'; import ShareIssue from 'app/components/shareIssue'; describe('ShareIssue', function() { it('renders when not shared', function() { const wrapper = shallow( {}} onShare={() => {}} /> ); expect(wrapper).toMatchSnapshot(); }); it('renders when shared ', function() { const wrapper = shallow( {}} onShare={() => {}} shareUrl="http://sentry.io/share/test/" /> ); expect(wrapper).toMatchSnapshot(); }); it('renders when busy', function() { const wrapper = shallow( {}} onShare={() => {}} busy={true} /> ); expect(wrapper).toMatchSnapshot(); }); });