sdkUpdates.spec.jsx 577 B

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