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