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