crashContent.spec.jsx 673 B

123456789101112131415161718192021222324252627
  1. import {mount} from 'enzyme';
  2. import React from 'react';
  3. import CrashContent from 'app/components/events/interfaces/crashContent';
  4. import {withMeta} from 'app/components/events/meta/metaProxy';
  5. describe('CrashContent', function() {
  6. const exc = TestStubs.ExceptionWithMeta();
  7. const event = TestStubs.Event();
  8. const proxiedExc = withMeta(exc);
  9. it('renders with meta data', function() {
  10. const wrapper = mount(
  11. <CrashContent
  12. projectId="sentry"
  13. stackView="full"
  14. stackType="original"
  15. event={event}
  16. newestFirst
  17. exception={proxiedExc.exception}
  18. />
  19. );
  20. expect(wrapper).toMatchSnapshot();
  21. });
  22. });