@@ -8,7 +8,7 @@ const issuesResp = {
8
8
paging : {
9
9
pageIndex : 1 ,
10
10
pageSize : 100 ,
11
- total : 3
11
+ total : 3 ,
12
12
} ,
13
13
effortTotal : 12 ,
14
14
debtTotal : 12 ,
@@ -25,11 +25,11 @@ const issuesResp = {
25
25
startLine : 3 ,
26
26
endLine : 3 ,
27
27
startOffset : 10 ,
28
- endOffset : 22
28
+ endOffset : 22 ,
29
29
} ,
30
30
flows : [ ] ,
31
31
status : "OPEN" ,
32
- message : " Remove this useless assignment to variable \ "secretApiKey\"." ,
32
+ message : ' Remove this useless assignment to variable "secretApiKey".' ,
33
33
effort : "1min" ,
34
34
debt : "1min" ,
35
35
assignee : "martindstone@github" ,
@@ -44,10 +44,10 @@ const issuesResp = {
44
44
impacts : [
45
45
{
46
46
softwareQuality : "MAINTAINABILITY" ,
47
- severity : "MEDIUM"
48
- }
47
+ severity : "MEDIUM" ,
48
+ } ,
49
49
] ,
50
- issueStatus : "OPEN"
50
+ issueStatus : "OPEN" ,
51
51
} ,
52
52
{
53
53
key : "AZGA0FU2K5CbPgAYf4Ps" ,
@@ -61,11 +61,11 @@ const issuesResp = {
61
61
startLine : 6 ,
62
62
endLine : 6 ,
63
63
startOffset : 10 ,
64
- endOffset : 24
64
+ endOffset : 24 ,
65
65
} ,
66
66
flows : [ ] ,
67
67
status : "OPEN" ,
68
- message : " Remove this useless assignment to variable \ "unusedVariable\"." ,
68
+ message : ' Remove this useless assignment to variable "unusedVariable".' ,
69
69
effort : "1min" ,
70
70
debt : "1min" ,
71
71
assignee : "martindstone@github" ,
@@ -80,10 +80,10 @@ const issuesResp = {
80
80
impacts : [
81
81
{
82
82
softwareQuality : "MAINTAINABILITY" ,
83
- severity : "MEDIUM"
84
- }
83
+ severity : "MEDIUM" ,
84
+ } ,
85
85
] ,
86
- issueStatus : "OPEN"
86
+ issueStatus : "OPEN" ,
87
87
} ,
88
88
{
89
89
key : "AZGA0FU2K5CbPgAYf4Pt" ,
@@ -97,7 +97,7 @@ const issuesResp = {
97
97
startLine : 21 ,
98
98
endLine : 21 ,
99
99
startOffset : 15 ,
100
- endOffset : 26
100
+ endOffset : 26 ,
101
101
} ,
102
102
flows : [
103
103
{
@@ -108,12 +108,12 @@ const issuesResp = {
108
108
startLine : 19 ,
109
109
endLine : 19 ,
110
110
startOffset : 8 ,
111
- endOffset : 19
111
+ endOffset : 19 ,
112
112
} ,
113
- msg : "Covering"
114
- }
115
- ]
116
- }
113
+ msg : "Covering" ,
114
+ } ,
115
+ ] ,
116
+ } ,
117
117
] ,
118
118
status : "OPEN" ,
119
119
message : "This condition is covered by the one on line 19" ,
@@ -131,11 +131,11 @@ const issuesResp = {
131
131
impacts : [
132
132
{
133
133
softwareQuality : "RELIABILITY" ,
134
- severity : "MEDIUM"
135
- }
134
+ severity : "MEDIUM" ,
135
+ } ,
136
136
] ,
137
- issueStatus : "OPEN"
138
- }
137
+ issueStatus : "OPEN" ,
138
+ } ,
139
139
] ,
140
140
components : [
141
141
{
@@ -146,16 +146,16 @@ const issuesResp = {
146
146
qualifier : "FIL" ,
147
147
name : "index.tsx" ,
148
148
longName : "index.tsx" ,
149
- path : "index.tsx"
150
- }
149
+ path : "index.tsx" ,
150
+ } ,
151
151
] ,
152
152
organizations : [
153
153
{
154
154
key : "martindstone-org" ,
155
- name : "martindstone-org"
156
- }
155
+ name : "martindstone-org" ,
156
+ } ,
157
157
] ,
158
- facets : [ ]
158
+ facets : [ ] ,
159
159
} ;
160
160
161
161
const serviceYaml = {
@@ -193,7 +193,7 @@ describe("Issues", () => {
193
193
fetchMock . mockIf (
194
194
/ ^ h t t p s : \/ \/ s o n a r c l o u d \. i o \/ a p i \/ i s s u e s / ,
195
195
async ( _req : Request ) => {
196
- return await Promise . resolve ( JSON . stringify ( { issues : [ ] } ) ) ;
196
+ return await Promise . resolve ( JSON . stringify ( { issues : [ ] } ) ) ;
197
197
}
198
198
) ;
199
199
render ( < SonarqubeIssues entityYaml = { serviceYaml } /> ) ;
0 commit comments