sdkUpdates.spec.jsx 594 B

1234567891011121314151617
  1. import {initializeOrg} from 'sentry-test/initializeOrg';
  2. import {render} from 'sentry-test/reactTestingLibrary';
  3. import EventSdkUpdates from 'sentry/components/events/sdkUpdates';
  4. describe('EventSdkUpdates', function () {
  5. const {routerContext} = initializeOrg();
  6. it('renders a suggestion to update the sdk and then enable an integration', function () {
  7. const props = {
  8. event: TestStubs.UpdateSdkAndEnableIntegrationSuggestion(),
  9. };
  10. const wrapper = render(<EventSdkUpdates {...props} />, {context: routerContext});
  11. expect(wrapper.container).toSnapshot();
  12. });
  13. });