]> source.dussan.org Git - sonarqube.git/blob
522ceab3d251f12560ca1fedcb522942c81893b4
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`#ComponentName should render breadcrumb correctly for APP 1`] = `
4 <span
5   aria-label="code.parent_folder"
6   className="max-width-100 display-inline-block text-ellipsis"
7   title="Foo
8
9 foo"
10 >
11   <span>
12     <QualifierIcon
13       qualifier="APP"
14     />
15      
16     Foo
17   </span>
18 </span>
19 `;
20
21 exports[`#ComponentName should render breadcrumb correctly for SVW 1`] = `
22 <span
23   aria-label="code.parent_folder"
24   className="max-width-100 display-inline-block text-ellipsis"
25   title="Foo
26
27 foo"
28 >
29   <span>
30     <QualifierIcon
31       qualifier="SVW"
32     />
33      
34     Foo
35   </span>
36 </span>
37 `;
38
39 exports[`#ComponentName should render breadcrumb correctly for TRK 1`] = `
40 <span
41   aria-label="code.parent_folder"
42   className="max-width-100 display-inline-block text-ellipsis"
43   title="Foo
44
45 foo"
46 >
47   <span>
48     <QualifierIcon
49       qualifier="TRK"
50     />
51      
52     Foo
53   </span>
54 </span>
55 `;
56
57 exports[`#ComponentName should render breadcrumb correctly for TRK 2`] = `
58 <span
59   aria-label="code.parent_folder"
60   className="max-width-100 display-inline-block text-ellipsis"
61   title="Foo
62
63 foo"
64 >
65   <span>
66     <QualifierIcon
67       qualifier="TRK"
68     />
69      
70     Foo
71   </span>
72 </span>
73 `;
74
75 exports[`#ComponentName should render breadcrumb correctly for VW 1`] = `
76 <span
77   aria-label="code.parent_folder"
78   className="max-width-100 display-inline-block text-ellipsis"
79   title="Foo
80
81 foo"
82 >
83   <span>
84     <QualifierIcon
85       qualifier="VW"
86     />
87      
88     Foo
89   </span>
90 </span>
91 `;
92
93 exports[`#ComponentName should render correctly for dirs 1`] = `
94 <span
95   className="max-width-100 display-inline-block text-ellipsis"
96   title="src/main/ts/app
97
98 foo"
99 >
100   <span>
101     <QualifierIcon
102       qualifier="DIR"
103     />
104      
105     <span>
106       <span
107         style={
108           Object {
109             "color": "#666",
110           }
111         }
112       >
113         src/main/ts/
114       </span>
115       <span>
116         app
117       </span>
118     </span>
119   </span>
120 </span>
121 `;
122
123 exports[`#ComponentName should render correctly for dirs 2`] = `
124 <span
125   className="max-width-100 display-inline-block text-ellipsis"
126   title="src
127
128 foo"
129 >
130   <span>
131     <QualifierIcon
132       qualifier="DIR"
133     />
134      
135     src
136   </span>
137 </span>
138 `;
139
140 exports[`#ComponentName should render correctly for files 1`] = `
141 <span
142   className="max-width-100 display-inline-block text-ellipsis"
143   title="src/index.tsx
144
145 foo:src/index.tsx"
146 >
147   <span>
148     <QualifierIcon
149       qualifier="FIL"
150     />
151      
152     index.tsx
153   </span>
154 </span>
155 `;
156
157 exports[`#ComponentName should render correctly for files 2`] = `
158 <span
159   className="max-width-100 display-inline-block text-ellipsis"
160   title="src/index.tsx
161
162 foo:src/index.tsx"
163 >
164   <Link
165     className="link-with-icon"
166     to={
167       Object {
168         "pathname": "/code",
169         "search": "?id=foo&selected=foo%3Asrc%2Findex.tsx",
170       }
171     }
172   >
173     <QualifierIcon
174       qualifier="FIL"
175     />
176      
177     <span>
178       index.tsx
179     </span>
180   </Link>
181 </span>
182 `;
183
184 exports[`#ComponentName should render correctly for files 3`] = `
185 <span
186   className="max-width-100 display-inline-block text-ellipsis"
187   title="src/index.tsx
188
189 foo:src/index.tsx"
190 >
191   <span>
192     <QualifierIcon
193       qualifier="FIL"
194     />
195      
196     index.tsx
197   </span>
198 </span>
199 `;
200
201 exports[`#ComponentName should render correctly for files 4`] = `
202 <span
203   className="max-width-100 display-inline-block text-ellipsis"
204   title="src/index.tsx
205
206 foo:src/index.tsx"
207 >
208   <span>
209     <QualifierIcon
210       qualifier="FIL"
211     />
212      
213     index.tsx
214   </span>
215 </span>
216 `;
217
218 exports[`#ComponentName should render correctly for files 5`] = `
219 <span
220   className="max-width-100 display-inline-block text-ellipsis"
221   title="src/index.tsx
222
223 foo:src/index.tsx"
224 >
225   <span>
226     <QualifierIcon
227       qualifier="FIL"
228     />
229      
230     index.tsx
231   </span>
232 </span>
233 `;
234
235 exports[`#ComponentName should render correctly for files 6`] = `
236 <span
237   className="max-width-100 display-inline-block text-ellipsis"
238   title="src/index.tsx
239
240 foo:src/index.tsx"
241 >
242   <span>
243     <QualifierIcon
244       qualifier="FIL"
245     />
246      
247     index.tsx
248   </span>
249 </span>
250 `;
251
252 exports[`#ComponentName should render correctly for files 7`] = `
253 <span
254   className="max-width-100 display-inline-block text-ellipsis"
255   title="src/index.tsx
256
257 foo:src/index.tsx"
258 >
259   <span>
260     <QualifierIcon
261       qualifier="FIL"
262     />
263      
264     index.tsx
265   </span>
266 </span>
267 `;
268
269 exports[`#ComponentName should render correctly for refs 1`] = `
270 <span
271   className="max-width-100 display-inline-block text-ellipsis"
272   title="Foo
273
274 foo
275
276 foo"
277 >
278   <Link
279     className="link-with-icon"
280     to={
281       Object {
282         "pathname": "/dashboard",
283         "search": "?id=src%2Fmain%2Fts%2Fapp&code_scope=new",
284       }
285     }
286   >
287     <QualifierIcon
288       qualifier="TRK"
289     />
290      
291     <span>
292       Foo
293     </span>
294   </Link>
295 </span>
296 `;
297
298 exports[`#ComponentName should render correctly for refs 2`] = `
299 <span
300   className="max-width-100 display-inline-flex-center"
301 >
302   <span
303     className="text-ellipsis"
304     title="Foo
305
306 foo
307
308 foo"
309   >
310     <Link
311       className="link-with-icon"
312       to={
313         Object {
314           "pathname": "/dashboard",
315           "search": "?id=src%2Fmain%2Fts%2Fapp&branch=foo&code_scope=new",
316         }
317       }
318     >
319       <QualifierIcon
320         qualifier="TRK"
321       />
322        
323       <span>
324         Foo
325       </span>
326     </Link>
327   </span>
328   <span
329     className="text-ellipsis spacer-left"
330   >
331     <BranchIcon
332       className="little-spacer-right"
333     />
334     <span
335       className="note"
336     >
337       foo
338     </span>
339   </span>
340 </span>
341 `;
342
343 exports[`#ComponentName should render correctly for refs 3`] = `
344 <span
345   className="max-width-100 display-inline-flex-center"
346 >
347   <span
348     className="text-ellipsis"
349     title="Foo
350
351 foo"
352   >
353     <Link
354       className="link-with-icon"
355       to={
356         Object {
357           "pathname": "/dashboard",
358           "search": "?id=src%2Fmain%2Fts%2Fapp&code_scope=new",
359         }
360       }
361     >
362       <QualifierIcon
363         qualifier="TRK"
364       />
365        
366       <span>
367         Foo
368       </span>
369     </Link>
370   </span>
371   <span
372     className="spacer-left badge flex-1"
373   >
374     branches.main_branch
375   </span>
376 </span>
377 `;
378
379 exports[`#getTooltip should correctly format component information 1`] = `
380 "src/index.tsx
381
382 foo:src/index.tsx"
383 `;
384
385 exports[`#getTooltip should correctly format component information 2`] = `
386 "src/index.tsx
387
388 foo:src/index.tsx"
389 `;
390
391 exports[`#getTooltip should correctly format component information 3`] = `
392 "index.tsx
393
394 foo:src/index.tsx"
395 `;
396
397 exports[`#getTooltip should correctly format component information 4`] = `
398 "Foo
399
400 foo"
401 `;