import React from 'react'; import {shallow} from 'sentry-test/enzyme'; import toJson from 'enzyme-to-json'; import EventOrGroupExtraDetails from 'app/components/eventOrGroupExtraDetails'; describe('EventOrGroupExtraDetails', function() { it('renders last and first seen', function() { const component = shallow( ); expect(toJson(component)).toMatchSnapshot(); }); it('renders only first seen', function() { const component = shallow( ); expect(toJson(component)).toMatchSnapshot(); }); it('renders only last seen', function() { const component = shallow( ); expect(toJson(component)).toMatchSnapshot(); }); it('renders all details', function() { const component = shallow( ); expect(toJson(component)).toMatchSnapshot(); }); it('renders assignee and status', function() { const component = shallow( ); expect(toJson(component)).toMatchSnapshot(); }); it('details when mentioned', function() { const component = shallow( ); expect(toJson(component)).toMatchSnapshot(); }); });