12345678910111213141516171819202122232425262728293031 |
- import React from 'react';
- import {mount} from 'enzyme';
- import SharedGroupDetails from 'app/views/sharedGroupDetails';
- describe('SharedGroupDetails', function() {
- beforeEach(function() {
- MockApiClient.addMockResponse({
- url: '/shared/issues/a/',
- body: TestStubs.Group({
- title: 'ZeroDivisionError',
- latestEvent: TestStubs.Event({
- entries: [TestStubs.EventEntry()],
- }),
- project: TestStubs.Project({organization: {slug: 'test-org'}}),
- }),
- });
- });
- afterEach(function() {
- MockApiClient.clearMockResponses();
- });
- it('renders', function() {
- const props = {
- params: {shareId: 'a'},
- };
- const wrapper = mount(<SharedGroupDetails {...props} />, TestStubs.routerContext());
- expect(wrapper).toMatchSnapshot();
- });
- });
|