hpkp.spec.tsx 773 B

1234567891011121314151617181920212223242526
  1. import {initializeOrg} from 'sentry-test/initializeOrg';
  2. import {render} from 'sentry-test/reactTestingLibrary';
  3. import ProjectHpkpReports from 'sentry/views/settings/projectSecurityHeaders/hpkp';
  4. describe('ProjectHpkpReports', function () {
  5. const {organization: org, project, routerProps} = initializeOrg();
  6. beforeEach(function () {
  7. MockApiClient.clearMockResponses();
  8. MockApiClient.addMockResponse({
  9. url: `/projects/${org.slug}/${project.slug}/`,
  10. method: 'GET',
  11. body: [],
  12. });
  13. MockApiClient.addMockResponse({
  14. url: `/projects/${org.slug}/${project.slug}/keys/`,
  15. method: 'GET',
  16. body: [],
  17. });
  18. });
  19. it('renders', function () {
  20. render(<ProjectHpkpReports {...routerProps} organization={org} />);
  21. });
  22. });