aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2022-07-06 15:05:04 +0200
committersonartech <sonartech@sonarsource.com>2022-07-08 20:02:48 +0000
commit6bd83879b74dac63c4683e8b9f8703cbb3f7b617 (patch)
tree946eb21a4e93b1cfa6bacd0b7d7835282c0450f8 /server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
parentf2fecdae009dd0572fa13cd76ac2903b590265b0 (diff)
downloadsonarqube-6bd83879b74dac63c4683e8b9f8703cbb3f7b617.tar.gz
sonarqube-6bd83879b74dac63c4683e8b9f8703cbb3f7b617.zip
SONAR-16614 Display the most relevant rule description context for an issue
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.ts6
1 files changed, 5 insertions, 1 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 0957a3b5f80..054ca7cde59 100644
--- a/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
+++ b/server/sonar-web/src/main/js/api/mocks/IssuesServiceMock.ts
@@ -146,7 +146,8 @@ export default class IssuesServiceMock {
endLine: 25,
startOffset: 0,
endOffset: 1
- }
+ },
+ ruleDescriptionContextKey: 'spring'
}),
snippets: keyBy(
[
@@ -253,6 +254,7 @@ export default class IssuesServiceMock {
content: '<p> Context 1 content<p>',
key: RuleDescriptionSections.HOW_TO_FIX,
context: {
+ key: 'spring',
displayName: 'Spring'
}
},
@@ -260,6 +262,7 @@ export default class IssuesServiceMock {
content: '<p> Context 2 content<p>',
key: RuleDescriptionSections.HOW_TO_FIX,
context: {
+ key: 'context_2',
displayName: 'Context 2'
}
},
@@ -267,6 +270,7 @@ export default class IssuesServiceMock {
content: '<p> Context 3 content<p>',
key: RuleDescriptionSections.HOW_TO_FIX,
context: {
+ key: 'context_3',
displayName: 'Context 3'
}
},