]> source.dussan.org Git - sonarqube.git/blob
f406307cd81c681c49236a60a27f66f2fd841b48
[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/branches",
277               "query": Object {
278                 "id": "foo",
279               },
280             }
281           }
282         >
283           project_branches.page
284         </Link>
285       </li>
286       <li>
287         <Link
288           activeClassName="active"
289           onlyActiveOnIndex={false}
290           style={Object {}}
291           to={
292             Object {
293               "pathname": "/project/admin/extension/foo",
294               "query": Object {
295                 "id": "foo",
296               },
297             }
298           }
299         >
300           Foo
301         </Link>
302       </li>
303       <li>
304         <Link
305           activeClassName="active"
306           onlyActiveOnIndex={false}
307           style={Object {}}
308           to={
309             Object {
310               "pathname": "/project/deletion",
311               "query": Object {
312                 "id": "foo",
313               },
314             }
315           }
316         >
317           deletion.page
318         </Link>
319       </li>
320     </ul>
321   </li>
322   <li
323     className="dropdown"
324   >
325     <a
326       className="dropdown-toggle"
327       data-toggle="dropdown"
328       href="#"
329       id="component-navigation-more"
330     >
331       more
332        
333       <i
334         className="icon-dropdown"
335       />
336     </a>
337     <ul
338       className="dropdown-menu"
339     >
340       <li>
341         <Link
342           activeClassName="active"
343           onlyActiveOnIndex={false}
344           style={Object {}}
345           to={
346             Object {
347               "pathname": "/project/extension/component-foo",
348               "query": Object {
349                 "id": "foo",
350               },
351             }
352           }
353         >
354           ComponentFoo
355         </Link>
356       </li>
357     </ul>
358   </li>
359 </NavBarTabs>
360 `;
361
362 exports[`should work with multiple extensions 1`] = `
363 <NavBarTabs>
364   <li>
365     <Link
366       activeClassName="active"
367       onlyActiveOnIndex={false}
368       style={Object {}}
369       to={
370         Object {
371           "pathname": "/dashboard",
372           "query": Object {
373             "branch": undefined,
374             "id": "foo",
375           },
376         }
377       }
378     >
379       overview.page
380     </Link>
381   </li>
382   <li>
383     <Link
384       activeClassName="active"
385       onlyActiveOnIndex={false}
386       style={Object {}}
387       to={
388         Object {
389           "pathname": "/project/issues",
390           "query": Object {
391             "branch": undefined,
392             "id": "foo",
393             "resolved": "false",
394           },
395         }
396       }
397     >
398       issues.page
399     </Link>
400   </li>
401   <li>
402     <Link
403       activeClassName="active"
404       onlyActiveOnIndex={false}
405       style={Object {}}
406       to={
407         Object {
408           "pathname": "/component_measures",
409           "query": Object {
410             "branch": undefined,
411             "id": "foo",
412           },
413         }
414       }
415     >
416       layout.measures
417     </Link>
418   </li>
419   <li>
420     <Link
421       activeClassName="active"
422       onlyActiveOnIndex={false}
423       style={Object {}}
424       to={
425         Object {
426           "pathname": "/code",
427           "query": Object {
428             "branch": undefined,
429             "id": "foo",
430           },
431         }
432       }
433     >
434       code.page
435     </Link>
436   </li>
437   <li>
438     <Link
439       activeClassName="active"
440       onlyActiveOnIndex={false}
441       style={Object {}}
442       to={
443         Object {
444           "pathname": "/project/activity",
445           "query": Object {
446             "branch": undefined,
447             "id": "foo",
448           },
449         }
450       }
451     >
452       project_activity.page
453     </Link>
454   </li>
455   <li
456     className="dropdown"
457   >
458     <a
459       className="dropdown-toggle is-admin"
460       data-toggle="dropdown"
461       href="#"
462       id="component-navigation-admin"
463     >
464       layout.settings
465        
466       <i
467         className="icon-dropdown"
468       />
469     </a>
470     <ul
471       className="dropdown-menu"
472     >
473       <li>
474         <Link
475           activeClassName="active"
476           onlyActiveOnIndex={false}
477           style={Object {}}
478           to={
479             Object {
480               "pathname": "/project/settings",
481               "query": Object {
482                 "id": "foo",
483               },
484             }
485           }
486         >
487           project_settings.page
488         </Link>
489       </li>
490       <li>
491         <Link
492           activeClassName="active"
493           onlyActiveOnIndex={false}
494           style={Object {}}
495           to={
496             Object {
497               "pathname": "/project/branches",
498               "query": Object {
499                 "id": "foo",
500               },
501             }
502           }
503         >
504           project_branches.page
505         </Link>
506       </li>
507       <li>
508         <Link
509           activeClassName="active"
510           onlyActiveOnIndex={false}
511           style={Object {}}
512           to={
513             Object {
514               "pathname": "/project/admin/extension/foo",
515               "query": Object {
516                 "id": "foo",
517               },
518             }
519           }
520         >
521           Foo
522         </Link>
523       </li>
524       <li>
525         <Link
526           activeClassName="active"
527           onlyActiveOnIndex={false}
528           style={Object {}}
529           to={
530             Object {
531               "pathname": "/project/admin/extension/bar",
532               "query": Object {
533                 "id": "foo",
534               },
535             }
536           }
537         >
538           Bar
539         </Link>
540       </li>
541       <li>
542         <Link
543           activeClassName="active"
544           onlyActiveOnIndex={false}
545           style={Object {}}
546           to={
547             Object {
548               "pathname": "/project/deletion",
549               "query": Object {
550                 "id": "foo",
551               },
552             }
553           }
554         >
555           deletion.page
556         </Link>
557       </li>
558     </ul>
559   </li>
560   <li
561     className="dropdown"
562   >
563     <a
564       className="dropdown-toggle"
565       data-toggle="dropdown"
566       href="#"
567       id="component-navigation-more"
568     >
569       more
570        
571       <i
572         className="icon-dropdown"
573       />
574     </a>
575     <ul
576       className="dropdown-menu"
577     >
578       <li>
579         <Link
580           activeClassName="active"
581           onlyActiveOnIndex={false}
582           style={Object {}}
583           to={
584             Object {
585               "pathname": "/project/extension/component-foo",
586               "query": Object {
587                 "id": "foo",
588               },
589             }
590           }
591         >
592           ComponentFoo
593         </Link>
594       </li>
595       <li>
596         <Link
597           activeClassName="active"
598           onlyActiveOnIndex={false}
599           style={Object {}}
600           to={
601             Object {
602               "pathname": "/project/extension/component-bar",
603               "query": Object {
604                 "id": "foo",
605               },
606             }
607           }
608         >
609           ComponentBar
610         </Link>
611       </li>
612     </ul>
613   </li>
614 </NavBarTabs>
615 `;