1234567891011121314151617181920212223242526 |
- import {initializeOrg} from 'sentry-test/initializeOrg';
- import {render} from 'sentry-test/reactTestingLibrary';
- import ProjectHpkpReports from 'sentry/views/settings/projectSecurityHeaders/hpkp';
- describe('ProjectHpkpReports', function () {
- const {organization: org, project, routerProps} = initializeOrg();
- beforeEach(function () {
- MockApiClient.clearMockResponses();
- MockApiClient.addMockResponse({
- url: `/projects/${org.slug}/${project.slug}/`,
- method: 'GET',
- body: [],
- });
- MockApiClient.addMockResponse({
- url: `/projects/${org.slug}/${project.slug}/keys/`,
- method: 'GET',
- body: [],
- });
- });
- it('renders', function () {
- render(<ProjectHpkpReports {...routerProps} organization={org} />);
- });
- });
|