newProject.spec.jsx 660 B

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