suggestProjectModal.spec.tsx 605 B

12345678910111213141516171819202122
  1. import {OrganizationFixture} from 'sentry-fixture/organization';
  2. import {act, renderGlobalModal} from 'sentry-test/reactTestingLibrary';
  3. import {openModal} from 'sentry/actionCreators/modal';
  4. import SuggestProjectModal from 'sentry/components/modals/suggestProjectModal';
  5. describe('SuggestProjectModal', function () {
  6. it('renders', function () {
  7. renderGlobalModal();
  8. act(() =>
  9. openModal(modalProps => (
  10. <SuggestProjectModal
  11. {...modalProps}
  12. organization={OrganizationFixture()}
  13. matchedUserAgentString="okhttp/"
  14. />
  15. ))
  16. );
  17. });
  18. });