123456789101112131415161718192021222324252627282930 |
- import {render} from 'sentry-test/reactTestingLibrary';
- import CrashContent from 'sentry/components/events/interfaces/crashContent';
- import {withMeta} from 'sentry/components/events/meta/metaProxy';
- import {OrganizationContext} from 'sentry/views/organizationContext';
- describe('CrashContent', function () {
- const exc = TestStubs.ExceptionWithMeta({platform: 'cocoa'});
- const event = TestStubs.Event();
- const organization = TestStubs.Organization();
- const proxiedExc = withMeta(exc);
- it('renders with meta data', function () {
- const wrapper = render(
- <OrganizationContext.Provider value={organization}>
- <CrashContent
- projectId="sentry"
- stackView="full"
- stackType="original"
- event={event}
- newestFirst
- exception={proxiedExc.exception}
- />
- </OrganizationContext.Provider>
- );
- expect(wrapper.container).toSnapshot();
- });
- });
|