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