]> source.dussan.org Git - sonarqube.git/blob
bad199992da86d370641e58265bde232a8212143
[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   <li>
97     <Link
98       className="is-admin"
99       id="component-navigation-admin"
100       onlyActiveOnIndex={false}
101       style={Object {}}
102       to={
103         Object {
104           "pathname": "/project/settings",
105           "query": Object {
106             "branch": "release",
107             "id": "foo",
108           },
109         }
110       }
111     >
112       layout.settings
113        
114     </Link>
115   </li>
116 </NavBarTabs>
117 `;
118
119 exports[`should work for short-living branches 1`] = `
120 <NavBarTabs>
121   <li>
122     <Link
123       activeClassName="active"
124       onlyActiveOnIndex={false}
125       style={Object {}}
126       to={
127         Object {
128           "pathname": "/project/issues",
129           "query": Object {
130             "branch": "feature",
131             "id": "foo",
132             "resolved": "false",
133           },
134         }
135       }
136     >
137       issues.page
138     </Link>
139   </li>
140   <li>
141     <Link
142       activeClassName="active"
143       onlyActiveOnIndex={false}
144       style={Object {}}
145       to={
146         Object {
147           "pathname": "/code",
148           "query": Object {
149             "branch": "feature",
150             "id": "foo",
151           },
152         }
153       }
154     >
155       code.page
156     </Link>
157   </li>
158 </NavBarTabs>
159 `;
160
161 exports[`should work with extensions 1`] = `
162 <NavBarTabs>
163   <li>
164     <Link
165       activeClassName="active"
166       onlyActiveOnIndex={false}
167       style={Object {}}
168       to={
169         Object {
170           "pathname": "/dashboard",
171           "query": Object {
172             "branch": undefined,
173             "id": "foo",
174           },
175         }
176       }
177     >
178       overview.page
179     </Link>
180   </li>
181   <li>
182     <Link
183       activeClassName="active"
184       onlyActiveOnIndex={false}
185       style={Object {}}
186       to={
187         Object {
188           "pathname": "/project/issues",
189           "query": Object {
190             "branch": undefined,
191             "id": "foo",
192             "resolved": "false",
193           },
194         }
195       }
196     >
197       issues.page
198     </Link>
199   </li>
200   <li>
201     <Link
202       activeClassName="active"
203       onlyActiveOnIndex={false}
204       style={Object {}}
205       to={
206         Object {
207           "pathname": "/component_measures",
208           "query": Object {
209             "branch": undefined,
210             "id": "foo",
211           },
212         }
213       }
214     >
215       layout.measures
216     </Link>
217   </li>
218   <li>
219     <Link
220       activeClassName="active"
221       onlyActiveOnIndex={false}
222       style={Object {}}
223       to={
224         Object {
225           "pathname": "/code",
226           "query": Object {
227             "branch": undefined,
228             "id": "foo",
229           },
230         }
231       }
232     >
233       code.page
234     </Link>
235   </li>
236   <li>
237     <Link
238       activeClassName="active"
239       onlyActiveOnIndex={false}
240       style={Object {}}
241       to={
242         Object {
243           "pathname": "/project/activity",
244           "query": Object {
245             "branch": undefined,
246             "id": "foo",
247           },
248         }
249       }
250     >
251       project_activity.page
252     </Link>
253   </li>
254   <li
255     className="dropdown"
256   >
257     <a
258       className="dropdown-toggle is-admin"
259       data-toggle="dropdown"
260       href="#"
261       id="component-navigation-admin"
262     >
263       layout.settings
264        
265       <i
266         className="icon-dropdown"
267       />
268     </a>
269     <ul
270       className="dropdown-menu"
271     >
272       <li>
273         <Link
274           activeClassName="active"
275           onlyActiveOnIndex={false}
276           style={Object {}}
277           to={
278             Object {
279               "pathname": "/project/settings",
280               "query": Object {
281                 "branch": undefined,
282                 "id": "foo",
283               },
284             }
285           }
286         >
287           project_settings.page
288         </Link>
289       </li>
290       <li>
291         <Link
292           activeClassName="active"
293           onlyActiveOnIndex={false}
294           style={Object {}}
295           to={
296             Object {
297               "pathname": "/project/branches",
298               "query": Object {
299                 "id": "foo",
300               },
301             }
302           }
303         >
304           project_branches.page
305         </Link>
306       </li>
307       <li>
308         <Link
309           activeClassName="active"
310           onlyActiveOnIndex={false}
311           style={Object {}}
312           to={
313             Object {
314               "pathname": "/project/admin/extension/foo",
315               "query": Object {
316                 "id": "foo",
317               },
318             }
319           }
320         >
321           Foo
322         </Link>
323       </li>
324       <li>
325         <Link
326           activeClassName="active"
327           onlyActiveOnIndex={false}
328           style={Object {}}
329           to={
330             Object {
331               "pathname": "/project/deletion",
332               "query": Object {
333                 "id": "foo",
334               },
335             }
336           }
337         >
338           deletion.page
339         </Link>
340       </li>
341     </ul>
342   </li>
343   <li
344     className="dropdown"
345   >
346     <a
347       className="dropdown-toggle"
348       data-toggle="dropdown"
349       href="#"
350       id="component-navigation-more"
351     >
352       more
353        
354       <i
355         className="icon-dropdown"
356       />
357     </a>
358     <ul
359       className="dropdown-menu"
360     >
361       <li>
362         <Link
363           activeClassName="active"
364           onlyActiveOnIndex={false}
365           style={Object {}}
366           to={
367             Object {
368               "pathname": "/project/extension/component-foo",
369               "query": Object {
370                 "id": "foo",
371               },
372             }
373           }
374         >
375           ComponentFoo
376         </Link>
377       </li>
378     </ul>
379   </li>
380 </NavBarTabs>
381 `;
382
383 exports[`should work with multiple extensions 1`] = `
384 <NavBarTabs>
385   <li>
386     <Link
387       activeClassName="active"
388       onlyActiveOnIndex={false}
389       style={Object {}}
390       to={
391         Object {
392           "pathname": "/dashboard",
393           "query": Object {
394             "branch": undefined,
395             "id": "foo",
396           },
397         }
398       }
399     >
400       overview.page
401     </Link>
402   </li>
403   <li>
404     <Link
405       activeClassName="active"
406       onlyActiveOnIndex={false}
407       style={Object {}}
408       to={
409         Object {
410           "pathname": "/project/issues",
411           "query": Object {
412             "branch": undefined,
413             "id": "foo",
414             "resolved": "false",
415           },
416         }
417       }
418     >
419       issues.page
420     </Link>
421   </li>
422   <li>
423     <Link
424       activeClassName="active"
425       onlyActiveOnIndex={false}
426       style={Object {}}
427       to={
428         Object {
429           "pathname": "/component_measures",
430           "query": Object {
431             "branch": undefined,
432             "id": "foo",
433           },
434         }
435       }
436     >
437       layout.measures
438     </Link>
439   </li>
440   <li>
441     <Link
442       activeClassName="active"
443       onlyActiveOnIndex={false}
444       style={Object {}}
445       to={
446         Object {
447           "pathname": "/code",
448           "query": Object {
449             "branch": undefined,
450             "id": "foo",
451           },
452         }
453       }
454     >
455       code.page
456     </Link>
457   </li>
458   <li>
459     <Link
460       activeClassName="active"
461       onlyActiveOnIndex={false}
462       style={Object {}}
463       to={
464         Object {
465           "pathname": "/project/activity",
466           "query": Object {
467             "branch": undefined,
468             "id": "foo",
469           },
470         }
471       }
472     >
473       project_activity.page
474     </Link>
475   </li>
476   <li
477     className="dropdown"
478   >
479     <a
480       className="dropdown-toggle is-admin"
481       data-toggle="dropdown"
482       href="#"
483       id="component-navigation-admin"
484     >
485       layout.settings
486        
487       <i
488         className="icon-dropdown"
489       />
490     </a>
491     <ul
492       className="dropdown-menu"
493     >
494       <li>
495         <Link
496           activeClassName="active"
497           onlyActiveOnIndex={false}
498           style={Object {}}
499           to={
500             Object {
501               "pathname": "/project/settings",
502               "query": Object {
503                 "branch": undefined,
504                 "id": "foo",
505               },
506             }
507           }
508         >
509           project_settings.page
510         </Link>
511       </li>
512       <li>
513         <Link
514           activeClassName="active"
515           onlyActiveOnIndex={false}
516           style={Object {}}
517           to={
518             Object {
519               "pathname": "/project/branches",
520               "query": Object {
521                 "id": "foo",
522               },
523             }
524           }
525         >
526           project_branches.page
527         </Link>
528       </li>
529       <li>
530         <Link
531           activeClassName="active"
532           onlyActiveOnIndex={false}
533           style={Object {}}
534           to={
535             Object {
536               "pathname": "/project/admin/extension/foo",
537               "query": Object {
538                 "id": "foo",
539               },
540             }
541           }
542         >
543           Foo
544         </Link>
545       </li>
546       <li>
547         <Link
548           activeClassName="active"
549           onlyActiveOnIndex={false}
550           style={Object {}}
551           to={
552             Object {
553               "pathname": "/project/admin/extension/bar",
554               "query": Object {
555                 "id": "foo",
556               },
557             }
558           }
559         >
560           Bar
561         </Link>
562       </li>
563       <li>
564         <Link
565           activeClassName="active"
566           onlyActiveOnIndex={false}
567           style={Object {}}
568           to={
569             Object {
570               "pathname": "/project/deletion",
571               "query": Object {
572                 "id": "foo",
573               },
574             }
575           }
576         >
577           deletion.page
578         </Link>
579       </li>
580     </ul>
581   </li>
582   <li
583     className="dropdown"
584   >
585     <a
586       className="dropdown-toggle"
587       data-toggle="dropdown"
588       href="#"
589       id="component-navigation-more"
590     >
591       more
592        
593       <i
594         className="icon-dropdown"
595       />
596     </a>
597     <ul
598       className="dropdown-menu"
599     >
600       <li>
601         <Link
602           activeClassName="active"
603           onlyActiveOnIndex={false}
604           style={Object {}}
605           to={
606             Object {
607               "pathname": "/project/extension/component-foo",
608               "query": Object {
609                 "id": "foo",
610               },
611             }
612           }
613         >
614           ComponentFoo
615         </Link>
616       </li>
617       <li>
618         <Link
619           activeClassName="active"
620           onlyActiveOnIndex={false}
621           style={Object {}}
622           to={
623             Object {
624               "pathname": "/project/extension/component-bar",
625               "query": Object {
626                 "id": "foo",
627               },
628             }
629           }
630         >
631           ComponentBar
632         </Link>
633       </li>
634     </ul>
635   </li>
636 </NavBarTabs>
637 `;