]> source.dussan.org Git - sonarqube.git/blob
43bad2938cab135a9dd8559c64183c027d89b729
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should not render coverage 1`] = `
4 <div
5   className="project-card-measure"
6   data-key="coverage"
7 >
8   <div
9     className="project-card-measure-inner"
10   >
11     <div
12       className="project-card-measure-number"
13     >
14       <Measure
15         metricKey="coverage"
16         metricType="PERCENT"
17       />
18     </div>
19     <div
20       className="project-card-measure-label"
21     >
22       metric.coverage.name
23     </div>
24   </div>
25 </div>
26 `;
27
28 exports[`should not render duplications 1`] = `
29 <div
30   className="project-card-measure"
31   data-key="duplicated_lines_density"
32 >
33   <div
34     className="project-card-measure-inner"
35   >
36     <div
37       className="project-card-measure-number"
38     >
39       <Measure
40         metricKey="duplicated_lines_density"
41         metricType="PERCENT"
42       />
43     </div>
44     <div
45       className="project-card-measure-label"
46     >
47       metric.duplicated_lines_density.short_name
48     </div>
49   </div>
50 </div>
51 `;
52
53 exports[`should render correctly with all data 1`] = `
54 <div
55   className="project-card-measures"
56 >
57   <div
58     className="project-card-measure"
59     data-key="reliability_rating"
60   >
61     <div
62       className="project-card-measure-inner"
63     >
64       <div
65         className="project-card-measure-number"
66       >
67         <Measure
68           className="spacer-right"
69           metricKey="bugs"
70           metricType="SHORT_INT"
71           value="17"
72         />
73         <Rating
74           value="1.0"
75         />
76       </div>
77       <div
78         className="project-card-measure-label-with-icon"
79       >
80         <BugIcon
81           className="little-spacer-right text-bottom"
82         />
83         metric.bugs.name
84       </div>
85     </div>
86   </div>
87   <div
88     className="project-card-measure"
89     data-key="security_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           metricKey="vulnerabilities"
100           metricType="SHORT_INT"
101           value="0"
102         />
103         <Rating
104           value="1.0"
105         />
106       </div>
107       <div
108         className="project-card-measure-label-with-icon"
109       >
110         <VulnerabilityIcon
111           className="little-spacer-right text-bottom"
112         />
113         metric.vulnerabilities.name
114       </div>
115     </div>
116   </div>
117   <div
118     className="project-card-measure"
119     data-key="sqale_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           metricKey="code_smells"
130           metricType="SHORT_INT"
131           value="132"
132         />
133         <Rating
134           value="1.0"
135         />
136       </div>
137       <div
138         className="project-card-measure-label-with-icon"
139       >
140         <CodeSmellIcon
141           className="little-spacer-right text-bottom"
142         />
143         metric.code_smells.name
144       </div>
145     </div>
146   </div>
147   <div
148     className="project-card-measure"
149     data-key="coverage"
150   >
151     <div
152       className="project-card-measure-inner"
153     >
154       <div
155         className="project-card-measure-number"
156       >
157         <span
158           className="spacer-right"
159         >
160           <CoverageRating
161             value="88.3"
162           />
163         </span>
164         <Measure
165           metricKey="coverage"
166           metricType="PERCENT"
167           value="88.3"
168         />
169       </div>
170       <div
171         className="project-card-measure-label"
172       >
173         metric.coverage.name
174       </div>
175     </div>
176   </div>
177   <div
178     className="project-card-measure"
179     data-key="duplicated_lines_density"
180   >
181     <div
182       className="project-card-measure-inner"
183     >
184       <div
185         className="project-card-measure-number"
186       >
187         <span
188           className="spacer-right"
189         >
190           <DuplicationsRating
191             value={9.8}
192           />
193         </span>
194         <Measure
195           metricKey="duplicated_lines_density"
196           metricType="PERCENT"
197           value="9.8"
198         />
199       </div>
200       <div
201         className="project-card-measure-label"
202       >
203         metric.duplicated_lines_density.short_name
204       </div>
205     </div>
206   </div>
207   <div
208     className="project-card-measure project-card-ncloc"
209     data-key="ncloc"
210   >
211     <div
212       className="project-card-measure-inner pull-right"
213     >
214       <div
215         className="project-card-measure-number"
216       >
217         <Measure
218           metricKey="ncloc"
219           metricType="SHORT_INT"
220           value="2053"
221         />
222         <span
223           className="spacer-left"
224         >
225           <SizeRating
226             value={2053}
227           />
228         </span>
229       </div>
230       <div
231         className="project-card-measure-label"
232       >
233         <Connect(ProjectCardLanguages)
234           className="project-card-languages"
235         />
236       </div>
237     </div>
238   </div>
239 </div>
240 `;
241
242 exports[`should render empty 1`] = `
243 <div
244   className="note"
245 >
246   overview.project.empty
247 </div>
248 `;
249
250 exports[`should render ncloc correctly 1`] = `
251 <div
252   className="project-card-measure project-card-ncloc"
253   data-key="ncloc"
254 >
255   <div
256     className="project-card-measure-inner pull-right"
257   >
258     <div
259       className="project-card-measure-number"
260     >
261       <Measure
262         metricKey="ncloc"
263         metricType="SHORT_INT"
264         value="16549887"
265       />
266       <span
267         className="spacer-left"
268       >
269         <SizeRating
270           value={16549887}
271         />
272       </span>
273     </div>
274     <div
275       className="project-card-measure-label"
276     >
277       <Connect(ProjectCardLanguages)
278         className="project-card-languages"
279       />
280     </div>
281   </div>
282 </div>
283 `;