123456789101112131415161718192021222324252627 |
- import {mount} from 'enzyme';
- import React from 'react';
- import CrashContent from 'app/components/events/interfaces/crashContent';
- import {withMeta} from 'app/components/events/meta/metaProxy';
- describe('CrashContent', function() {
- const exc = TestStubs.ExceptionWithMeta();
- const event = TestStubs.Event();
- const proxiedExc = withMeta(exc);
- it('renders with meta data', function() {
- const wrapper = mount(
- <CrashContent
- projectId="sentry"
- stackView="full"
- stackType="original"
- event={event}
- newestFirst
- exception={proxiedExc.exception}
- />
- );
- expect(wrapper).toMatchSnapshot();
- });
- });
|