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