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