newProject.spec.tsx 656 B

123456789101112131415161718192021222324
  1. import {MOCK_RESP_VERBOSE} from 'sentry-fixture/ruleConditions';
  2. import {initializeOrg} from 'sentry-test/initializeOrg';
  3. import {render} from 'sentry-test/reactTestingLibrary';
  4. import NewProject from 'sentry/views/projectInstall/newProject';
  5. describe('NewProjectPlatform', function () {
  6. beforeEach(() => {
  7. MockApiClient.addMockResponse({
  8. url: `/projects/org-slug/rule-conditions/`,
  9. body: MOCK_RESP_VERBOSE,
  10. });
  11. });
  12. afterEach(() => {
  13. MockApiClient.clearMockResponses();
  14. });
  15. it('should render', function () {
  16. const {routerContext} = initializeOrg();
  17. render(<NewProject />, {context: routerContext});
  18. });
  19. });