diff options
author | Revanshu Paliwal <revanshu.paliwal@sonarsource.com> | 2022-08-11 10:55:31 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-08-11 20:03:48 +0000 |
commit | b9849bbf55bc69d25ca35ebf343bfa2f20b99319 (patch) | |
tree | ebd4327aacef0b358080d51b0bef70f0254f32ca /server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts | |
parent | 83e4462b71c4addb0095098b0cc664477c23ae92 (diff) | |
download | sonarqube-b9849bbf55bc69d25ca35ebf343bfa2f20b99319.tar.gz sonarqube-b9849bbf55bc69d25ca35ebf343bfa2f20b99319.zip |
SONAR-16538 Common component for issue message tags
Diffstat (limited to 'server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts')
-rw-r--r-- | server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts b/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts index d0e9abd2661..ac260fff216 100644 --- a/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts +++ b/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts @@ -214,6 +214,35 @@ export default class IssuesServiceMock { ], 'component.key' ) + }, + { + issue: mockRawIssue(false, { + actions: ['set_type', 'set_tags', 'comment', 'set_severity', 'assign'], + transitions: ['confirm', 'resolve', 'falsepositive', 'wontfix'], + key: 'issue4', + component: 'project:file.bar', + message: 'Issue with tags', + rule: 'external_eslint_repo:no-div-regex', + textRange: { + startLine: 25, + endLine: 25, + startOffset: 0, + endOffset: 1 + }, + ruleDescriptionContextKey: 'spring', + ruleStatus: 'DEPRECATED', + quickFixAvailable: true + }), + snippets: keyBy( + [ + mockSnippetsByComponent( + 'file.bar', + 'project', + times(40, i => i + 20) + ) + ], + 'component.key' + ) } ]; (searchIssues as jest.Mock).mockImplementation(this.handleSearchIssues); |