]> source.dussan.org Git - sonarqube.git/blob
964ff49ff6838e0a83888a6769d3a048c677f3ed
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should not render new coverage 1`] = `
4 <div
5   className="project-card-measure"
6   data-key="new_coverage"
7 >
8   <div
9     className="project-card-measure-inner"
10   >
11     <div
12       className="project-card-measure-number"
13     >
14       <Measure
15         measure={
16           Object {
17             "leak": undefined,
18           }
19         }
20         metric={
21           Object {
22             "key": "new_coverage",
23             "type": "PERCENT",
24           }
25         }
26       />
27     </div>
28     <div
29       className="project-card-measure-label"
30     >
31       metric.new_coverage.name
32     </div>
33   </div>
34 </div>
35 `;
36
37 exports[`should not render new duplications 1`] = `
38 <div
39   className="project-card-measure"
40   data-key="new_duplicated_lines_density"
41 >
42   <div
43     className="project-card-measure-inner"
44   >
45     <div
46       className="project-card-measure-number"
47     >
48       <Measure
49         measure={
50           Object {
51             "leak": undefined,
52           }
53         }
54         metric={
55           Object {
56             "key": "new_duplicated_lines_density",
57             "type": "PERCENT",
58           }
59         }
60       />
61     </div>
62     <div
63       className="project-card-measure-label"
64     >
65       metric.new_duplicated_lines_density.short_name
66     </div>
67   </div>
68 </div>
69 `;
70
71 exports[`should not render new lines 1`] = `undefined`;
72
73 exports[`should render correctly with all data 1`] = `
74 <div
75   className="project-card-leak-measures"
76 >
77   <div
78     className="project-card-measure smaller-card"
79     data-key="new_reliability_rating"
80   >
81     <div
82       className="project-card-measure-inner"
83     >
84       <div
85         className="project-card-measure-number"
86       >
87         <Measure
88           className="spacer-right"
89           measure={
90             Object {
91               "leak": "8",
92             }
93           }
94           metric={
95             Object {
96               "key": "new_bugs",
97               "type": "SHORT_INT",
98             }
99           }
100         />
101         <Rating
102           muted={false}
103           small={false}
104           value="1.0"
105         />
106       </div>
107       <div
108         className="project-card-measure-label-with-icon"
109       >
110         <BugIcon
111           className="little-spacer-right vertical-bottom"
112         />
113         metric.new_bugs.name
114       </div>
115     </div>
116   </div>
117   <div
118     className="project-card-measure"
119     data-key="new_security_rating"
120   >
121     <div
122       className="project-card-measure-inner"
123     >
124       <div
125         className="project-card-measure-number"
126       >
127         <Measure
128           className="spacer-right"
129           measure={
130             Object {
131               "leak": "2",
132             }
133           }
134           metric={
135             Object {
136               "key": "new_vulnerabilities",
137               "type": "SHORT_INT",
138             }
139           }
140         />
141         <Rating
142           muted={false}
143           small={false}
144           value="2.0"
145         />
146       </div>
147       <div
148         className="project-card-measure-label-with-icon"
149       >
150         <VulnerabilityIcon
151           className="little-spacer-right vertical-bottom"
152         />
153         metric.new_vulnerabilities.name
154       </div>
155     </div>
156   </div>
157   <div
158     className="project-card-measure"
159     data-key="new_maintainability_rating"
160   >
161     <div
162       className="project-card-measure-inner"
163     >
164       <div
165         className="project-card-measure-number"
166       >
167         <Measure
168           className="spacer-right"
169           measure={
170             Object {
171               "leak": "0",
172             }
173           }
174           metric={
175             Object {
176               "key": "new_code_smells",
177               "type": "SHORT_INT",
178             }
179           }
180         />
181         <Rating
182           muted={false}
183           small={false}
184           value="1.0"
185         />
186       </div>
187       <div
188         className="project-card-measure-label-with-icon"
189       >
190         <CodeSmellIcon
191           className="little-spacer-right vertical-bottom"
192         />
193         metric.new_code_smells.name
194       </div>
195     </div>
196   </div>
197   <div
198     className="project-card-measure"
199     data-key="new_coverage"
200   >
201     <div
202       className="project-card-measure-inner"
203     >
204       <div
205         className="project-card-measure-number"
206       >
207         <Measure
208           measure={
209             Object {
210               "leak": "26.55",
211             }
212           }
213           metric={
214             Object {
215               "key": "new_coverage",
216               "type": "PERCENT",
217             }
218           }
219         />
220       </div>
221       <div
222         className="project-card-measure-label"
223       >
224         metric.new_coverage.name
225       </div>
226     </div>
227   </div>
228   <div
229     className="project-card-measure"
230     data-key="new_duplicated_lines_density"
231   >
232     <div
233       className="project-card-measure-inner"
234     >
235       <div
236         className="project-card-measure-number"
237       >
238         <Measure
239           measure={
240             Object {
241               "leak": "0.55",
242             }
243           }
244           metric={
245             Object {
246               "key": "new_duplicated_lines_density",
247               "type": "PERCENT",
248             }
249           }
250         />
251       </div>
252       <div
253         className="project-card-measure-label"
254       >
255         metric.new_duplicated_lines_density.short_name
256       </div>
257     </div>
258   </div>
259   <div
260     className="project-card-measure smaller-card pull-right"
261     data-key="new_lines"
262   >
263     <div
264       className="project-card-measure-inner"
265     >
266       <div
267         className="project-card-measure-number"
268       >
269         <Measure
270           measure={
271             Object {
272               "leak": "87",
273             }
274           }
275           metric={
276             Object {
277               "key": "new_lines",
278               "type": "SHORT_INT",
279             }
280           }
281         />
282       </div>
283       <div
284         className="project-card-measure-label"
285       >
286         metric.new_lines.short_name
287       </div>
288     </div>
289   </div>
290 </div>
291 `;