crashContent.spec.jsx 638 B

1234567891011121314151617181920212223242526
  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. let exc = TestStubs.ExceptionWithMeta();
  7. let event = TestStubs.Event();
  8. let proxiedExc = withMeta(exc);
  9. it('renders with meta data', function() {
  10. let wrapper = mount(
  11. <CrashContent
  12. stackView="full"
  13. stackType="original"
  14. event={event}
  15. newestFirst
  16. exception={proxiedExc.exception}
  17. />
  18. );
  19. expect(wrapper).toMatchSnapshot();
  20. });
  21. });