aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
diff options
context:
space:
mode:
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>2022-08-11 10:55:31 +0200
committersonartech <sonartech@sonarsource.com>2022-08-11 20:03:48 +0000
commitb9849bbf55bc69d25ca35ebf343bfa2f20b99319 (patch)
treeebd4327aacef0b358080d51b0bef70f0254f32ca /server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
parent83e4462b71c4addb0095098b0cc664477c23ae92 (diff)
downloadsonarqube-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.ts29
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);