diff options
author | Viktor Vorona <viktor.vorona@sonarsource.com> | 2024-05-02 15:19:58 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-05-03 20:02:50 +0000 |
commit | c56851e2ee25bebffd05980dcabd5ae31c8ee1a0 (patch) | |
tree | 6b594892e085af043e273d1f66aa921473abbeba /server/sonar-web/src/main/js/apps/projects | |
parent | d0eae15ce508fb65f718ef7167aa3cfca698a8e8 (diff) | |
download | sonarqube-c56851e2ee25bebffd05980dcabd5ae31c8ee1a0.tar.gz sonarqube-c56851e2ee25bebffd05980dcabd5ae31c8ee1a0.zip |
SONAR-22168 Align Component and mockComponent
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects')
3 files changed, 3 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/__tests__/CreateApplication-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/__tests__/CreateApplication-test.tsx index 832d7f41d6c..a55e30a8593 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/__tests__/CreateApplication-test.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/__tests__/CreateApplication-test.tsx @@ -20,13 +20,12 @@ import userEvent from '@testing-library/user-event'; import * as React from 'react'; import { queryToSearchString } from '~sonar-aligned/helpers/urls'; -import { ComponentQualifier } from '~sonar-aligned/types/component'; +import { ComponentQualifier, Visibility } from '~sonar-aligned/types/component'; import { createApplication } from '../../../../api/application'; import { getComponentNavigation } from '../../../../api/navigation'; import { mockAppState, mockLoggedInUser, mockRouter } from '../../../../helpers/testMocks'; import { renderComponent } from '../../../../helpers/testReactTestingUtils'; import { byRole, byText } from '../../../../helpers/testSelector'; -import { Visibility } from '../../../../types/component'; import { FCProps } from '../../../../types/misc'; import { LoggedInUser } from '../../../../types/users'; import { ApplicationCreation } from '../ApplicationCreation'; diff --git a/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/ProjectCard-test.tsx b/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/ProjectCard-test.tsx index 1f5cfda2ca2..44fe864f3b7 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/ProjectCard-test.tsx +++ b/server/sonar-web/src/main/js/apps/projects/components/project-card/__tests__/ProjectCard-test.tsx @@ -19,11 +19,10 @@ */ import { screen } from '@testing-library/react'; import React from 'react'; -import { ComponentQualifier } from '~sonar-aligned/types/component'; +import { ComponentQualifier, Visibility } from '~sonar-aligned/types/component'; import { MetricKey } from '~sonar-aligned/types/metrics'; import { mockCurrentUser, mockLoggedInUser } from '../../../../../helpers/testMocks'; import { renderComponent } from '../../../../../helpers/testReactTestingUtils'; -import { Visibility } from '../../../../../types/component'; import { CurrentUser } from '../../../../../types/users'; import { Project } from '../../../types'; import ProjectCard from '../ProjectCard'; diff --git a/server/sonar-web/src/main/js/apps/projects/types.ts b/server/sonar-web/src/main/js/apps/projects/types.ts index 437faeb5870..4abea9916c0 100644 --- a/server/sonar-web/src/main/js/apps/projects/types.ts +++ b/server/sonar-web/src/main/js/apps/projects/types.ts @@ -17,8 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { ComponentQualifier } from '~sonar-aligned/types/component'; -import { Visibility } from '../../types/component'; +import { ComponentQualifier, Visibility } from '~sonar-aligned/types/component'; import { Dict } from '../../types/types'; export interface Project { |