]> source.dussan.org Git - sonarqube.git/blob
732fe6a4674348b1509dfa61922795ecd418e76b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for coverage 1`] = `
4 <div
5   className="display-flex-center"
6 >
7   <span
8     className="big-spacer-right"
9   >
10     <CoverageRating
11       size="big"
12       value={1}
13     />
14   </span>
15   <div
16     className="display-flex-column"
17   >
18     <span>
19       <DrilldownLink
20         branchLike={
21           Object {
22             "analysisDate": "2018-01-01",
23             "base": "master",
24             "branch": "feature/foo/bar",
25             "key": "1001",
26             "target": "master",
27             "title": "Foo Bar feature",
28           }
29         }
30         className="overview-measures-value text-light"
31         component="my-project"
32         metric="coverage"
33       >
34         1.0%
35       </DrilldownLink>
36     </span>
37     <span
38       className="spacer-top"
39     >
40       metric.coverage.name
41     </span>
42   </div>
43 </div>
44 `;
45
46 exports[`should render correctly for coverage 2`] = `
47 <div
48   className="display-flex-center"
49 >
50   <span
51     className="big-spacer-right"
52   >
53     <CoverageRating
54       size="big"
55       value={1}
56     />
57   </span>
58   <div
59     className="display-flex-column"
60   >
61     <span>
62       <DrilldownLink
63         branchLike={
64           Object {
65             "analysisDate": "2018-01-01",
66             "base": "master",
67             "branch": "feature/foo/bar",
68             "key": "1001",
69             "target": "master",
70             "title": "Foo Bar feature",
71           }
72         }
73         className="overview-measures-value text-light"
74         component="my-project"
75         metric="coverage"
76       >
77         1.0%
78       </DrilldownLink>
79     </span>
80     <span
81       className="spacer-top"
82     >
83       <FormattedMessage
84         defaultMessage="overview.coverage_on_X_lines"
85         id="overview.coverage_on_X_lines"
86         values={
87           Object {
88             "count": <DrilldownLink
89               branchLike={
90                 Object {
91                   "analysisDate": "2018-01-01",
92                   "base": "master",
93                   "branch": "feature/foo/bar",
94                   "key": "1001",
95                   "target": "master",
96                   "title": "Foo Bar feature",
97                 }
98               }
99               className="big"
100               component="my-project"
101               metric="lines_to_cover"
102             >
103               1
104             </DrilldownLink>,
105           }
106         }
107       />
108     </span>
109   </div>
110 </div>
111 `;
112
113 exports[`should render correctly for coverage 3`] = `
114 <div
115   className="display-flex-center"
116 >
117   <span
118     className="big-spacer-right"
119   >
120     <CoverageRating
121       size="big"
122       value={1}
123     />
124   </span>
125   <div
126     className="display-flex-column"
127   >
128     <span>
129       <DrilldownLink
130         branchLike={
131           Object {
132             "analysisDate": "2018-01-01",
133             "base": "master",
134             "branch": "feature/foo/bar",
135             "key": "1001",
136             "target": "master",
137             "title": "Foo Bar feature",
138           }
139         }
140         className="overview-measures-value text-light"
141         component="my-project"
142         metric="new_coverage"
143       >
144         1.0%
145       </DrilldownLink>
146     </span>
147     <span
148       className="spacer-top"
149     >
150       <FormattedMessage
151         defaultMessage="overview.coverage_on_X_new_lines"
152         id="overview.coverage_on_X_new_lines"
153         values={
154           Object {
155             "count": <DrilldownLink
156               branchLike={
157                 Object {
158                   "analysisDate": "2018-01-01",
159                   "base": "master",
160                   "branch": "feature/foo/bar",
161                   "key": "1001",
162                   "target": "master",
163                   "title": "Foo Bar feature",
164                 }
165               }
166               className="big"
167               component="my-project"
168               metric="new_lines_to_cover"
169             >
170               1
171             </DrilldownLink>,
172           }
173         }
174       />
175     </span>
176   </div>
177 </div>
178 `;
179
180 exports[`should render correctly for duplications 1`] = `
181 <div
182   className="display-flex-center"
183 >
184   <span
185     className="big-spacer-right"
186   >
187     <DuplicationsRating
188       size="big"
189       value={1}
190     />
191   </span>
192   <div
193     className="display-flex-column"
194   >
195     <span>
196       <DrilldownLink
197         branchLike={
198           Object {
199             "analysisDate": "2018-01-01",
200             "base": "master",
201             "branch": "feature/foo/bar",
202             "key": "1001",
203             "target": "master",
204             "title": "Foo Bar feature",
205           }
206         }
207         className="overview-measures-value text-light"
208         component="my-project"
209         metric="duplicated_lines_density"
210       >
211         1.0%
212       </DrilldownLink>
213     </span>
214     <span
215       className="spacer-top"
216     >
217       metric.duplicated_lines_density.short_name
218     </span>
219   </div>
220 </div>
221 `;
222
223 exports[`should render correctly for duplications 2`] = `
224 <div
225   className="display-flex-center"
226 >
227   <span
228     className="big-spacer-right"
229   >
230     <DuplicationsRating
231       size="big"
232       value={1}
233     />
234   </span>
235   <div
236     className="display-flex-column"
237   >
238     <span>
239       <DrilldownLink
240         branchLike={
241           Object {
242             "analysisDate": "2018-01-01",
243             "base": "master",
244             "branch": "feature/foo/bar",
245             "key": "1001",
246             "target": "master",
247             "title": "Foo Bar feature",
248           }
249         }
250         className="overview-measures-value text-light"
251         component="my-project"
252         metric="duplicated_lines_density"
253       >
254         1.0%
255       </DrilldownLink>
256     </span>
257     <span
258       className="spacer-top"
259     >
260       <FormattedMessage
261         defaultMessage="overview.duplications_on_X_lines"
262         id="overview.duplications_on_X_lines"
263         values={
264           Object {
265             "count": <DrilldownLink
266               branchLike={
267                 Object {
268                   "analysisDate": "2018-01-01",
269                   "base": "master",
270                   "branch": "feature/foo/bar",
271                   "key": "1001",
272                   "target": "master",
273                   "title": "Foo Bar feature",
274                 }
275               }
276               className="big"
277               component="my-project"
278               metric="ncloc"
279             >
280               1
281             </DrilldownLink>,
282           }
283         }
284       />
285     </span>
286   </div>
287 </div>
288 `;
289
290 exports[`should render correctly for duplications 3`] = `
291 <div
292   className="display-flex-center"
293 >
294   <span
295     className="big-spacer-right"
296   >
297     <DuplicationsRating
298       size="big"
299       value={1}
300     />
301   </span>
302   <div
303     className="display-flex-column"
304   >
305     <span>
306       <DrilldownLink
307         branchLike={
308           Object {
309             "analysisDate": "2018-01-01",
310             "base": "master",
311             "branch": "feature/foo/bar",
312             "key": "1001",
313             "target": "master",
314             "title": "Foo Bar feature",
315           }
316         }
317         className="overview-measures-value text-light"
318         component="my-project"
319         metric="new_duplicated_lines_density"
320       >
321         1.0%
322       </DrilldownLink>
323     </span>
324     <span
325       className="spacer-top"
326     >
327       <FormattedMessage
328         defaultMessage="overview.duplications_on_X_new_lines"
329         id="overview.duplications_on_X_new_lines"
330         values={
331           Object {
332             "count": <DrilldownLink
333               branchLike={
334                 Object {
335                   "analysisDate": "2018-01-01",
336                   "base": "master",
337                   "branch": "feature/foo/bar",
338                   "key": "1001",
339                   "target": "master",
340                   "title": "Foo Bar feature",
341                 }
342               }
343               className="big"
344               component="my-project"
345               metric="new_lines"
346             >
347               1
348             </DrilldownLink>,
349           }
350         }
351       />
352     </span>
353   </div>
354 </div>
355 `;
356
357 exports[`should render correctly when centered 1`] = `
358 <div
359   className="display-flex-column flex-1"
360 >
361   <div
362     className="display-flex-center display-flex-justify-center"
363   >
364     <span
365       className="big-spacer-right"
366     >
367       <CoverageRating
368         size="big"
369         value={1}
370       />
371     </span>
372     <DrilldownLink
373       branchLike={
374         Object {
375           "analysisDate": "2018-01-01",
376           "base": "master",
377           "branch": "feature/foo/bar",
378           "key": "1001",
379           "target": "master",
380           "title": "Foo Bar feature",
381         }
382       }
383       className="overview-measures-value text-light"
384       component="my-project"
385       metric="coverage"
386     >
387       1.0%
388     </DrilldownLink>
389   </div>
390   <div
391     className="spacer-top text-center"
392   >
393     metric.coverage.name
394   </div>
395 </div>
396 `;
397
398 exports[`should render correctly with no value 1`] = `
399 <div
400   className="display-flex-center"
401 >
402   <span
403     aria-label="no_data"
404     className="overview-measures-empty-value"
405   />
406   <span
407     className="big-spacer-left"
408   >
409     metric.coverage.name
410   </span>
411 </div>
412 `;