]> source.dussan.org Git - sonarqube.git/blob
ab9cc70c6b1b70698004669209269be605087442
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should work for long-living branches 1`] = `
4 <NavBarTabs>
5   <li>
6     <Link
7       activeClassName="active"
8       onlyActiveOnIndex={false}
9       style={Object {}}
10       to={
11         Object {
12           "pathname": "/dashboard",
13           "query": Object {
14             "branch": "release",
15             "id": "foo",
16           },
17         }
18       }
19     >
20       overview.page
21     </Link>
22   </li>
23   <li>
24     <Link
25       activeClassName="active"
26       onlyActiveOnIndex={false}
27       style={Object {}}
28       to={
29         Object {
30           "pathname": "/project/issues",
31           "query": Object {
32             "branch": "release",
33             "id": "foo",
34             "resolved": "false",
35           },
36         }
37       }
38     >
39       issues.page
40     </Link>
41   </li>
42   <li>
43     <Link
44       activeClassName="active"
45       onlyActiveOnIndex={false}
46       style={Object {}}
47       to={
48         Object {
49           "pathname": "/component_measures",
50           "query": Object {
51             "branch": "release",
52             "id": "foo",
53           },
54         }
55       }
56     >
57       layout.measures
58     </Link>
59   </li>
60   <li>
61     <Link
62       activeClassName="active"
63       onlyActiveOnIndex={false}
64       style={Object {}}
65       to={
66         Object {
67           "pathname": "/code",
68           "query": Object {
69             "branch": "release",
70             "id": "foo",
71           },
72         }
73       }
74     >
75       code.page
76     </Link>
77   </li>
78   <li>
79     <Link
80       activeClassName="active"
81       onlyActiveOnIndex={false}
82       style={Object {}}
83       to={
84         Object {
85           "pathname": "/project/activity",
86           "query": Object {
87             "branch": "release",
88             "id": "foo",
89           },
90         }
91       }
92     >
93       project_activity.page
94     </Link>
95   </li>
96 </NavBarTabs>
97 `;
98
99 exports[`should work for short-living branches 1`] = `
100 <NavBarTabs>
101   <li>
102     <Link
103       activeClassName="active"
104       onlyActiveOnIndex={false}
105       style={Object {}}
106       to={
107         Object {
108           "pathname": "/project/issues",
109           "query": Object {
110             "branch": "feature",
111             "id": "foo",
112             "resolved": "false",
113           },
114         }
115       }
116     >
117       issues.page
118     </Link>
119   </li>
120   <li>
121     <Link
122       activeClassName="active"
123       onlyActiveOnIndex={false}
124       style={Object {}}
125       to={
126         Object {
127           "pathname": "/code",
128           "query": Object {
129             "branch": "feature",
130             "id": "foo",
131           },
132         }
133       }
134     >
135       code.page
136     </Link>
137   </li>
138 </NavBarTabs>
139 `;
140
141 exports[`should work with extensions 1`] = `
142 <NavBarTabs>
143   <li>
144     <Link
145       activeClassName="active"
146       onlyActiveOnIndex={false}
147       style={Object {}}
148       to={
149         Object {
150           "pathname": "/dashboard",
151           "query": Object {
152             "branch": undefined,
153             "id": "foo",
154           },
155         }
156       }
157     >
158       overview.page
159     </Link>
160   </li>
161   <li>
162     <Link
163       activeClassName="active"
164       onlyActiveOnIndex={false}
165       style={Object {}}
166       to={
167         Object {
168           "pathname": "/project/issues",
169           "query": Object {
170             "branch": undefined,
171             "id": "foo",
172             "resolved": "false",
173           },
174         }
175       }
176     >
177       issues.page
178     </Link>
179   </li>
180   <li>
181     <Link
182       activeClassName="active"
183       onlyActiveOnIndex={false}
184       style={Object {}}
185       to={
186         Object {
187           "pathname": "/component_measures",
188           "query": Object {
189             "branch": undefined,
190             "id": "foo",
191           },
192         }
193       }
194     >
195       layout.measures
196     </Link>
197   </li>
198   <li>
199     <Link
200       activeClassName="active"
201       onlyActiveOnIndex={false}
202       style={Object {}}
203       to={
204         Object {
205           "pathname": "/code",
206           "query": Object {
207             "branch": undefined,
208             "id": "foo",
209           },
210         }
211       }
212     >
213       code.page
214     </Link>
215   </li>
216   <li>
217     <Link
218       activeClassName="active"
219       onlyActiveOnIndex={false}
220       style={Object {}}
221       to={
222         Object {
223           "pathname": "/project/activity",
224           "query": Object {
225             "branch": undefined,
226             "id": "foo",
227           },
228         }
229       }
230     >
231       project_activity.page
232     </Link>
233   </li>
234   <li
235     className="dropdown"
236   >
237     <a
238       className="dropdown-toggle is-admin"
239       data-toggle="dropdown"
240       href="#"
241       id="component-navigation-admin"
242     >
243       layout.settings
244        
245       <i
246         className="icon-dropdown"
247       />
248     </a>
249     <ul
250       className="dropdown-menu"
251     >
252       <li>
253         <Link
254           activeClassName="active"
255           onlyActiveOnIndex={false}
256           style={Object {}}
257           to={
258             Object {
259               "pathname": "/project/settings",
260               "query": Object {
261                 "id": "foo",
262               },
263             }
264           }
265         >
266           project_settings.page
267         </Link>
268       </li>
269       <li>
270         <Link
271           activeClassName="active"
272           onlyActiveOnIndex={false}
273           style={Object {}}
274           to={
275             Object {
276               "pathname": "/project/admin/extension/foo",
277               "query": Object {
278                 "id": "foo",
279               },
280             }
281           }
282         >
283           Foo
284         </Link>
285       </li>
286       <li>
287         <Link
288           activeClassName="active"
289           onlyActiveOnIndex={false}
290           style={Object {}}
291           to={
292             Object {
293               "pathname": "/project/deletion",
294               "query": Object {
295                 "id": "foo",
296               },
297             }
298           }
299         >
300           deletion.page
301         </Link>
302       </li>
303     </ul>
304   </li>
305   <li
306     className="dropdown"
307   >
308     <a
309       className="dropdown-toggle"
310       data-toggle="dropdown"
311       href="#"
312       id="component-navigation-more"
313     >
314       more
315        
316       <i
317         className="icon-dropdown"
318       />
319     </a>
320     <ul
321       className="dropdown-menu"
322     >
323       <li>
324         <Link
325           activeClassName="active"
326           onlyActiveOnIndex={false}
327           style={Object {}}
328           to={
329             Object {
330               "pathname": "/project/extension/component-foo",
331               "query": Object {
332                 "id": "foo",
333               },
334             }
335           }
336         >
337           ComponentFoo
338         </Link>
339       </li>
340     </ul>
341   </li>
342 </NavBarTabs>
343 `;
344
345 exports[`should work with multiple extensions 1`] = `
346 <NavBarTabs>
347   <li>
348     <Link
349       activeClassName="active"
350       onlyActiveOnIndex={false}
351       style={Object {}}
352       to={
353         Object {
354           "pathname": "/dashboard",
355           "query": Object {
356             "branch": undefined,
357             "id": "foo",
358           },
359         }
360       }
361     >
362       overview.page
363     </Link>
364   </li>
365   <li>
366     <Link
367       activeClassName="active"
368       onlyActiveOnIndex={false}
369       style={Object {}}
370       to={
371         Object {
372           "pathname": "/project/issues",
373           "query": Object {
374             "branch": undefined,
375             "id": "foo",
376             "resolved": "false",
377           },
378         }
379       }
380     >
381       issues.page
382     </Link>
383   </li>
384   <li>
385     <Link
386       activeClassName="active"
387       onlyActiveOnIndex={false}
388       style={Object {}}
389       to={
390         Object {
391           "pathname": "/component_measures",
392           "query": Object {
393             "branch": undefined,
394             "id": "foo",
395           },
396         }
397       }
398     >
399       layout.measures
400     </Link>
401   </li>
402   <li>
403     <Link
404       activeClassName="active"
405       onlyActiveOnIndex={false}
406       style={Object {}}
407       to={
408         Object {
409           "pathname": "/code",
410           "query": Object {
411             "branch": undefined,
412             "id": "foo",
413           },
414         }
415       }
416     >
417       code.page
418     </Link>
419   </li>
420   <li>
421     <Link
422       activeClassName="active"
423       onlyActiveOnIndex={false}
424       style={Object {}}
425       to={
426         Object {
427           "pathname": "/project/activity",
428           "query": Object {
429             "branch": undefined,
430             "id": "foo",
431           },
432         }
433       }
434     >
435       project_activity.page
436     </Link>
437   </li>
438   <li
439     className="dropdown"
440   >
441     <a
442       className="dropdown-toggle is-admin"
443       data-toggle="dropdown"
444       href="#"
445       id="component-navigation-admin"
446     >
447       layout.settings
448        
449       <i
450         className="icon-dropdown"
451       />
452     </a>
453     <ul
454       className="dropdown-menu"
455     >
456       <li>
457         <Link
458           activeClassName="active"
459           onlyActiveOnIndex={false}
460           style={Object {}}
461           to={
462             Object {
463               "pathname": "/project/settings",
464               "query": Object {
465                 "id": "foo",
466               },
467             }
468           }
469         >
470           project_settings.page
471         </Link>
472       </li>
473       <li>
474         <Link
475           activeClassName="active"
476           onlyActiveOnIndex={false}
477           style={Object {}}
478           to={
479             Object {
480               "pathname": "/project/admin/extension/foo",
481               "query": Object {
482                 "id": "foo",
483               },
484             }
485           }
486         >
487           Foo
488         </Link>
489       </li>
490       <li>
491         <Link
492           activeClassName="active"
493           onlyActiveOnIndex={false}
494           style={Object {}}
495           to={
496             Object {
497               "pathname": "/project/admin/extension/bar",
498               "query": Object {
499                 "id": "foo",
500               },
501             }
502           }
503         >
504           Bar
505         </Link>
506       </li>
507       <li>
508         <Link
509           activeClassName="active"
510           onlyActiveOnIndex={false}
511           style={Object {}}
512           to={
513             Object {
514               "pathname": "/project/deletion",
515               "query": Object {
516                 "id": "foo",
517               },
518             }
519           }
520         >
521           deletion.page
522         </Link>
523       </li>
524     </ul>
525   </li>
526   <li
527     className="dropdown"
528   >
529     <a
530       className="dropdown-toggle"
531       data-toggle="dropdown"
532       href="#"
533       id="component-navigation-more"
534     >
535       more
536        
537       <i
538         className="icon-dropdown"
539       />
540     </a>
541     <ul
542       className="dropdown-menu"
543     >
544       <li>
545         <Link
546           activeClassName="active"
547           onlyActiveOnIndex={false}
548           style={Object {}}
549           to={
550             Object {
551               "pathname": "/project/extension/component-foo",
552               "query": Object {
553                 "id": "foo",
554               },
555             }
556           }
557         >
558           ComponentFoo
559         </Link>
560       </li>
561       <li>
562         <Link
563           activeClassName="active"
564           onlyActiveOnIndex={false}
565           style={Object {}}
566           to={
567             Object {
568               "pathname": "/project/extension/component-bar",
569               "query": Object {
570                 "id": "foo",
571               },
572             }
573           }
574         >
575           ComponentBar
576         </Link>
577       </li>
578     </ul>
579   </li>
580 </NavBarTabs>
581 `;