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