Skip to content

Commit ee8cfc7

Browse files
committed
prettier tests
1 parent e53bc96 commit ee8cfc7

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

plugins/sonarqube-issues/src/components/SonarqubeIssues.test.tsx

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const issuesResp = {
88
paging: {
99
pageIndex: 1,
1010
pageSize: 100,
11-
total: 3
11+
total: 3,
1212
},
1313
effortTotal: 12,
1414
debtTotal: 12,
@@ -25,11 +25,11 @@ const issuesResp = {
2525
startLine: 3,
2626
endLine: 3,
2727
startOffset: 10,
28-
endOffset: 22
28+
endOffset: 22,
2929
},
3030
flows: [],
3131
status: "OPEN",
32-
message: "Remove this useless assignment to variable \"secretApiKey\".",
32+
message: 'Remove this useless assignment to variable "secretApiKey".',
3333
effort: "1min",
3434
debt: "1min",
3535
assignee: "martindstone@github",
@@ -44,10 +44,10 @@ const issuesResp = {
4444
impacts: [
4545
{
4646
softwareQuality: "MAINTAINABILITY",
47-
severity: "MEDIUM"
48-
}
47+
severity: "MEDIUM",
48+
},
4949
],
50-
issueStatus: "OPEN"
50+
issueStatus: "OPEN",
5151
},
5252
{
5353
key: "AZGA0FU2K5CbPgAYf4Ps",
@@ -61,11 +61,11 @@ const issuesResp = {
6161
startLine: 6,
6262
endLine: 6,
6363
startOffset: 10,
64-
endOffset: 24
64+
endOffset: 24,
6565
},
6666
flows: [],
6767
status: "OPEN",
68-
message: "Remove this useless assignment to variable \"unusedVariable\".",
68+
message: 'Remove this useless assignment to variable "unusedVariable".',
6969
effort: "1min",
7070
debt: "1min",
7171
assignee: "martindstone@github",
@@ -80,10 +80,10 @@ const issuesResp = {
8080
impacts: [
8181
{
8282
softwareQuality: "MAINTAINABILITY",
83-
severity: "MEDIUM"
84-
}
83+
severity: "MEDIUM",
84+
},
8585
],
86-
issueStatus: "OPEN"
86+
issueStatus: "OPEN",
8787
},
8888
{
8989
key: "AZGA0FU2K5CbPgAYf4Pt",
@@ -97,7 +97,7 @@ const issuesResp = {
9797
startLine: 21,
9898
endLine: 21,
9999
startOffset: 15,
100-
endOffset: 26
100+
endOffset: 26,
101101
},
102102
flows: [
103103
{
@@ -108,12 +108,12 @@ const issuesResp = {
108108
startLine: 19,
109109
endLine: 19,
110110
startOffset: 8,
111-
endOffset: 19
111+
endOffset: 19,
112112
},
113-
msg: "Covering"
114-
}
115-
]
116-
}
113+
msg: "Covering",
114+
},
115+
],
116+
},
117117
],
118118
status: "OPEN",
119119
message: "This condition is covered by the one on line 19",
@@ -131,11 +131,11 @@ const issuesResp = {
131131
impacts: [
132132
{
133133
softwareQuality: "RELIABILITY",
134-
severity: "MEDIUM"
135-
}
134+
severity: "MEDIUM",
135+
},
136136
],
137-
issueStatus: "OPEN"
138-
}
137+
issueStatus: "OPEN",
138+
},
139139
],
140140
components: [
141141
{
@@ -146,16 +146,16 @@ const issuesResp = {
146146
qualifier: "FIL",
147147
name: "index.tsx",
148148
longName: "index.tsx",
149-
path: "index.tsx"
150-
}
149+
path: "index.tsx",
150+
},
151151
],
152152
organizations: [
153153
{
154154
key: "martindstone-org",
155-
name: "martindstone-org"
156-
}
155+
name: "martindstone-org",
156+
},
157157
],
158-
facets: []
158+
facets: [],
159159
};
160160

161161
const serviceYaml = {
@@ -193,7 +193,7 @@ describe("Issues", () => {
193193
fetchMock.mockIf(
194194
/^https:\/\/sonarcloud\.io\/api\/issues/,
195195
async (_req: Request) => {
196-
return await Promise.resolve(JSON.stringify({issues: []}));
196+
return await Promise.resolve(JSON.stringify({ issues: [] }));
197197
}
198198
);
199199
render(<SonarqubeIssues entityYaml={serviceYaml} />);

0 commit comments

Comments
 (0)