newProject.spec.jsx 604 B

12345678910111213141516171819
  1. import {mountWithTheme} from 'sentry-test/enzyme';
  2. import {initializeOrg} from 'sentry-test/initializeOrg';
  3. import {Client} from 'sentry/api';
  4. import NewProject from 'sentry/views/projectInstall/newProject';
  5. describe('NewProjectPlatform', function () {
  6. beforeEach(function () {
  7. this.stubbedApiRequest = jest.spyOn(Client.prototype, 'request');
  8. });
  9. describe('render()', function () {
  10. it('should render', function () {
  11. const {routerContext} = initializeOrg();
  12. const wrapper = mountWithTheme(<NewProject />, routerContext);
  13. expect(wrapper).toSnapshot();
  14. });
  15. });
  16. });