diff options
author | David Cho-Lerat <david.cho-lerat@sonarsource.com> | 2023-12-19 15:36:18 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-12-19 20:02:55 +0000 |
commit | 0db27c3d415c58b03966ea0ad9b52b8811fc9d77 (patch) | |
tree | 7964578543d9a9ee5227ae4d824fa416e3eacfc0 /server/sonar-web/src/main/js/components/tutorials | |
parent | 9eb4153032acdcb1b0812d6a50301089fd9cbde2 (diff) | |
download | sonarqube-0db27c3d415c58b03966ea0ad9b52b8811fc9d77.tar.gz sonarqube-0db27c3d415c58b03966ea0ad9b52b8811fc9d77.zip |
MMF-3504 Open issue in IDE: send user token to SonarLint if needed
Diffstat (limited to 'server/sonar-web/src/main/js/components/tutorials')
8 files changed, 0 insertions, 16 deletions
diff --git a/server/sonar-web/src/main/js/components/tutorials/__tests__/TutorialSelection-it.tsx b/server/sonar-web/src/main/js/components/tutorials/__tests__/TutorialSelection-it.tsx index 636bce0f5de..4bcd0c3493e 100644 --- a/server/sonar-web/src/main/js/components/tutorials/__tests__/TutorialSelection-it.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/__tests__/TutorialSelection-it.tsx @@ -38,8 +38,6 @@ import { SettingsKey } from '../../../types/settings'; import TutorialSelection from '../TutorialSelection'; import { TutorialModes } from '../types'; -jest.mock('../../../api/user-tokens'); - jest.mock('../../../helpers/urls', () => ({ ...jest.requireActual('../../../helpers/urls'), getHostUrl: jest.fn().mockReturnValue('http://host.url'), diff --git a/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/__tests__/AzurePipelinesTutorial-it.tsx b/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/__tests__/AzurePipelinesTutorial-it.tsx index c5f2fe19608..b5553601c5d 100644 --- a/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/__tests__/AzurePipelinesTutorial-it.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/__tests__/AzurePipelinesTutorial-it.tsx @@ -31,8 +31,6 @@ import { getCopyToClipboardValue, getTutorialBuildButtons } from '../../test-uti import { OSs } from '../../types'; import AzurePipelinesTutorial, { AzurePipelinesTutorialProps } from '../AzurePipelinesTutorial'; -jest.mock('../../../../api/user-tokens'); - jest.mock('../../../../api/settings', () => ({ getAllValues: jest.fn().mockResolvedValue([]), })); diff --git a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/BitbucketPipelinesTutorial-it.tsx b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/BitbucketPipelinesTutorial-it.tsx index 9b98664c4a0..94e3fe32bd9 100644 --- a/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/BitbucketPipelinesTutorial-it.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/bitbucket-pipelines/__tests__/BitbucketPipelinesTutorial-it.tsx @@ -40,8 +40,6 @@ import BitbucketPipelinesTutorial, { BitbucketPipelinesTutorialProps, } from '../BitbucketPipelinesTutorial'; -jest.mock('../../../../api/user-tokens'); - jest.mock('../../../../api/settings', () => ({ getAllValues: jest.fn().mockResolvedValue([]), })); diff --git a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/EditTokenModal-test.tsx b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/EditTokenModal-test.tsx index 0526f6ae83c..3b8390fda40 100644 --- a/server/sonar-web/src/main/js/components/tutorials/components/__tests__/EditTokenModal-test.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/components/__tests__/EditTokenModal-test.tsx @@ -31,8 +31,6 @@ import { Permissions } from '../../../../types/permissions'; import { TokenType } from '../../../../types/token'; import EditTokenModal from '../EditTokenModal'; -jest.mock('../../../../api/user-tokens'); - jest.mock('../../../../api/settings', () => ({ getAllValues: jest.fn().mockResolvedValue([]), })); diff --git a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/GithubActionTutorial-it.tsx b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/GithubActionTutorial-it.tsx index 1e2c5c3cd7d..c828104edbc 100644 --- a/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/GithubActionTutorial-it.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/github-action/__tests__/GithubActionTutorial-it.tsx @@ -38,8 +38,6 @@ import { import { GradleBuildDSL, TutorialModes } from '../../types'; import GitHubActionTutorial, { GitHubActionTutorialProps } from '../GitHubActionTutorial'; -jest.mock('../../../../api/user-tokens'); - jest.mock('../../../../api/settings', () => ({ getAllValues: jest.fn().mockResolvedValue([]), })); diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/GitLabCITutorial-it.tsx b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/GitLabCITutorial-it.tsx index d770389339b..86204862f64 100644 --- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/GitLabCITutorial-it.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/GitLabCITutorial-it.tsx @@ -34,8 +34,6 @@ import { import { GradleBuildDSL, TutorialModes } from '../../types'; import GitLabCITutorial, { GitLabCITutorialProps } from '../GitLabCITutorial'; -jest.mock('../../../../api/user-tokens'); - jest.mock('../../../../api/settings', () => ({ getAllValues: jest.fn().mockResolvedValue([]), })); diff --git a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/JenkinsTutorial-it.tsx b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/JenkinsTutorial-it.tsx index 9c7ef8cda9d..a29b6c583f7 100644 --- a/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/JenkinsTutorial-it.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/jenkins/__tests__/JenkinsTutorial-it.tsx @@ -36,8 +36,6 @@ import { import { GradleBuildDSL } from '../../types'; import JenkinsTutorial, { JenkinsTutorialProps } from '../JenkinsTutorial'; -jest.mock('../../../../api/user-tokens'); - jest.mock('../../../../api/settings', () => ({ getAllValues: jest.fn().mockResolvedValue([]), })); diff --git a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/OtherTutorial-it.tsx b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/OtherTutorial-it.tsx index 7b69fde3d6c..b106b35eb9b 100644 --- a/server/sonar-web/src/main/js/components/tutorials/other/__tests__/OtherTutorial-it.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/other/__tests__/OtherTutorial-it.tsx @@ -33,8 +33,6 @@ import { } from '../../test-utils'; import OtherTutorial from '../OtherTutorial'; -jest.mock('../../../../api/user-tokens'); - jest.mock('../../../../api/settings', () => ({ getAllValues: jest.fn().mockResolvedValue([]), })); |