]> source.dussan.org Git - sonarqube.git/blob
9d82c53b036ff745293aae2855e1ec37ce3355c8
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly with all data 1`] = `
4 <div
5   className="project-card-leak-measures"
6 >
7   <div
8     className="project-card-measure smaller-card"
9     data-key="new_reliability_rating"
10   >
11     <div
12       className="project-card-measure-inner"
13     >
14       <div
15         className="project-card-measure-number"
16       >
17         <Measure
18           className="spacer-right"
19           measure={
20             Object {
21               "leak": "8",
22               "metric": Object {
23                 "key": "new_bugs",
24                 "type": "SHORT_INT",
25               },
26             }
27           }
28         />
29         <Rating
30           value="1.0"
31         />
32       </div>
33       <div
34         className="project-card-measure-label-with-icon"
35       >
36         <BugIcon
37           className="little-spacer-right vertical-bottom"
38         />
39         metric.bugs.name
40       </div>
41     </div>
42   </div>
43   <div
44     className="project-card-measure"
45     data-key="new_security_rating"
46   >
47     <div
48       className="project-card-measure-inner"
49     >
50       <div
51         className="project-card-measure-number"
52       >
53         <Measure
54           className="spacer-right"
55           measure={
56             Object {
57               "leak": "2",
58               "metric": Object {
59                 "key": "new_vulnerabilities",
60                 "type": "SHORT_INT",
61               },
62             }
63           }
64         />
65         <Rating
66           value="2.0"
67         />
68       </div>
69       <div
70         className="project-card-measure-label-with-icon"
71       >
72         <VulnerabilityIcon
73           className="little-spacer-right vertical-bottom"
74         />
75         metric.vulnerabilities.name
76       </div>
77     </div>
78   </div>
79   <div
80     className="project-card-measure"
81     data-key="new_maintainability_rating"
82   >
83     <div
84       className="project-card-measure-inner"
85     >
86       <div
87         className="project-card-measure-number"
88       >
89         <Measure
90           className="spacer-right"
91           measure={
92             Object {
93               "leak": "0",
94               "metric": Object {
95                 "key": "new_code_smells",
96                 "type": "SHORT_INT",
97               },
98             }
99           }
100         />
101         <Rating
102           value="1.0"
103         />
104       </div>
105       <div
106         className="project-card-measure-label-with-icon"
107       >
108         <CodeSmellIcon
109           className="little-spacer-right vertical-bottom"
110         />
111         metric.code_smells.name
112       </div>
113     </div>
114   </div>
115   <div
116     className="project-card-measure"
117     data-key="new_coverage"
118   >
119     <div
120       className="project-card-measure-inner"
121     >
122       <div
123         className="project-card-measure-number"
124       >
125         <Measure
126           measure={
127             Object {
128               "leak": "26.55",
129               "metric": Object {
130                 "key": "new_coverage",
131                 "type": "PERCENT",
132               },
133             }
134           }
135         />
136       </div>
137       <div
138         className="project-card-measure-label"
139       >
140         metric.coverage.name
141       </div>
142     </div>
143   </div>
144   <div
145     className="project-card-measure"
146     data-key="new_duplicated_lines_density"
147   >
148     <div
149       className="project-card-measure-inner"
150     >
151       <div
152         className="project-card-measure-number"
153       >
154         <Measure
155           measure={
156             Object {
157               "leak": "0.55",
158               "metric": Object {
159                 "key": "new_duplicated_lines_density",
160                 "type": "PERCENT",
161               },
162             }
163           }
164         />
165       </div>
166       <div
167         className="project-card-measure-label"
168       >
169         metric.duplicated_lines_density.short_name
170       </div>
171     </div>
172   </div>
173   <div
174     className="project-card-measure smaller-card pull-right"
175     data-key="new_lines"
176   >
177     <div
178       className="project-card-measure-inner"
179     >
180       <div
181         className="project-card-measure-number"
182       >
183         <Measure
184           measure={
185             Object {
186               "leak": "87",
187               "metric": Object {
188                 "key": "new_lines",
189                 "type": "SHORT_INT",
190               },
191             }
192           }
193         />
194       </div>
195       <div
196         className="project-card-measure-label"
197       >
198         metric.lines.name
199       </div>
200     </div>
201   </div>
202 </div>
203 `;
204
205 exports[`should render no data style new coverage, new duplications and new lines 1`] = `
206 <div
207   className="project-card-leak-measures"
208 >
209   <div
210     className="project-card-measure smaller-card"
211     data-key="new_reliability_rating"
212   >
213     <div
214       className="project-card-measure-inner"
215     >
216       <div
217         className="project-card-measure-number"
218       >
219         <Measure
220           className="spacer-right"
221           measure={
222             Object {
223               "leak": "8",
224               "metric": Object {
225                 "key": "new_bugs",
226                 "type": "SHORT_INT",
227               },
228             }
229           }
230         />
231         <Rating
232           value="1.0"
233         />
234       </div>
235       <div
236         className="project-card-measure-label-with-icon"
237       >
238         <BugIcon
239           className="little-spacer-right vertical-bottom"
240         />
241         metric.bugs.name
242       </div>
243     </div>
244   </div>
245   <div
246     className="project-card-measure"
247     data-key="new_security_rating"
248   >
249     <div
250       className="project-card-measure-inner"
251     >
252       <div
253         className="project-card-measure-number"
254       >
255         <Measure
256           className="spacer-right"
257           measure={
258             Object {
259               "leak": "2",
260               "metric": Object {
261                 "key": "new_vulnerabilities",
262                 "type": "SHORT_INT",
263               },
264             }
265           }
266         />
267         <Rating
268           value="2.0"
269         />
270       </div>
271       <div
272         className="project-card-measure-label-with-icon"
273       >
274         <VulnerabilityIcon
275           className="little-spacer-right vertical-bottom"
276         />
277         metric.vulnerabilities.name
278       </div>
279     </div>
280   </div>
281   <div
282     className="project-card-measure"
283     data-key="new_maintainability_rating"
284   >
285     <div
286       className="project-card-measure-inner"
287     >
288       <div
289         className="project-card-measure-number"
290       >
291         <Measure
292           className="spacer-right"
293           measure={
294             Object {
295               "leak": "0",
296               "metric": Object {
297                 "key": "new_code_smells",
298                 "type": "SHORT_INT",
299               },
300             }
301           }
302         />
303         <Rating
304           value="1.0"
305         />
306       </div>
307       <div
308         className="project-card-measure-label-with-icon"
309       >
310         <CodeSmellIcon
311           className="little-spacer-right vertical-bottom"
312         />
313         metric.code_smells.name
314       </div>
315     </div>
316   </div>
317   <div
318     className="project-card-measure"
319     data-key="new_coverage"
320   >
321     <div
322       className="project-card-measure-inner"
323     >
324       <div
325         className="project-card-measure-number"
326       >
327         <Measure
328           measure={
329             Object {
330               "leak": undefined,
331               "metric": Object {
332                 "key": "new_coverage",
333                 "type": "PERCENT",
334               },
335             }
336           }
337         />
338       </div>
339       <div
340         className="project-card-measure-label"
341       >
342         metric.coverage.name
343       </div>
344     </div>
345   </div>
346   <div
347     className="project-card-measure"
348     data-key="new_duplicated_lines_density"
349   >
350     <div
351       className="project-card-measure-inner"
352     >
353       <div
354         className="project-card-measure-number"
355       >
356         <Measure
357           measure={
358             Object {
359               "leak": undefined,
360               "metric": Object {
361                 "key": "new_duplicated_lines_density",
362                 "type": "PERCENT",
363               },
364             }
365           }
366         />
367       </div>
368       <div
369         className="project-card-measure-label"
370       >
371         metric.duplicated_lines_density.short_name
372       </div>
373     </div>
374   </div>
375   <div
376     className="project-card-measure smaller-card pull-right"
377     data-key="new_lines"
378   >
379     <div
380       className="project-card-measure-inner"
381     >
382       <div
383         className="project-card-measure-number"
384       >
385         <Measure
386           measure={
387             Object {
388               "leak": undefined,
389               "metric": Object {
390                 "key": "new_lines",
391                 "type": "SHORT_INT",
392               },
393             }
394           }
395         />
396       </div>
397       <div
398         className="project-card-measure-label"
399       >
400         metric.lines.name
401       </div>
402     </div>
403   </div>
404 </div>
405 `;