]> source.dussan.org Git - sonarqube.git/blob
1772a834780be3a14ec60ede760d39492af132db
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should work with extensions 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             "id": "foo",
15           },
16         }
17       }
18     >
19       overview.page
20     </Link>
21   </li>
22   <li>
23     <Link
24       activeClassName="active"
25       onlyActiveOnIndex={false}
26       style={Object {}}
27       to={
28         Object {
29           "pathname": "/project/issues",
30           "query": Object {
31             "id": "foo",
32             "resolved": "false",
33           },
34         }
35       }
36     >
37       issues.page
38     </Link>
39   </li>
40   <li>
41     <Link
42       activeClassName="active"
43       onlyActiveOnIndex={false}
44       style={Object {}}
45       to={
46         Object {
47           "pathname": "/component_measures",
48           "query": Object {
49             "id": "foo",
50           },
51         }
52       }
53     >
54       layout.measures
55     </Link>
56   </li>
57   <li>
58     <Link
59       activeClassName="active"
60       onlyActiveOnIndex={false}
61       style={Object {}}
62       to={
63         Object {
64           "pathname": "/code",
65           "query": Object {
66             "id": "foo",
67           },
68         }
69       }
70     >
71       code.page
72     </Link>
73   </li>
74   <li>
75     <Link
76       activeClassName="active"
77       onlyActiveOnIndex={false}
78       style={Object {}}
79       to={
80         Object {
81           "pathname": "/project/activity",
82           "query": Object {
83             "id": "foo",
84           },
85         }
86       }
87     >
88       project_activity.page
89     </Link>
90   </li>
91   <li
92     className="dropdown"
93   >
94     <a
95       className="dropdown-toggle is-admin"
96       data-toggle="dropdown"
97       href="#"
98       id="component-navigation-admin"
99     >
100       layout.settings
101        
102       <i
103         className="icon-dropdown"
104       />
105     </a>
106     <ul
107       className="dropdown-menu"
108     >
109       <li>
110         <Link
111           activeClassName="active"
112           onlyActiveOnIndex={false}
113           style={Object {}}
114           to={
115             Object {
116               "pathname": "/project/settings",
117               "query": Object {
118                 "id": "foo",
119               },
120             }
121           }
122         >
123           project_settings.page
124         </Link>
125       </li>
126       <li>
127         <Link
128           activeClassName="active"
129           onlyActiveOnIndex={false}
130           style={Object {}}
131           to={
132             Object {
133               "pathname": "/project/admin/extension/foo",
134               "query": Object {
135                 "id": "foo",
136               },
137             }
138           }
139         >
140           Foo
141         </Link>
142       </li>
143       <li>
144         <Link
145           activeClassName="active"
146           onlyActiveOnIndex={false}
147           style={Object {}}
148           to={
149             Object {
150               "pathname": "/project/deletion",
151               "query": Object {
152                 "id": "foo",
153               },
154             }
155           }
156         >
157           deletion.page
158         </Link>
159       </li>
160     </ul>
161   </li>
162   <li
163     className="dropdown"
164   >
165     <a
166       className="dropdown-toggle"
167       data-toggle="dropdown"
168       href="#"
169       id="component-navigation-more"
170     >
171       more
172        
173       <i
174         className="icon-dropdown"
175       />
176     </a>
177     <ul
178       className="dropdown-menu"
179     >
180       <li>
181         <Link
182           activeClassName="active"
183           onlyActiveOnIndex={false}
184           style={Object {}}
185           to={
186             Object {
187               "pathname": "/project/extension/component-foo",
188               "query": Object {
189                 "id": "foo",
190               },
191             }
192           }
193         >
194           ComponentFoo
195         </Link>
196       </li>
197     </ul>
198   </li>
199 </NavBarTabs>
200 `;
201
202 exports[`should work with multiple extensions 1`] = `
203 <NavBarTabs>
204   <li>
205     <Link
206       activeClassName="active"
207       onlyActiveOnIndex={false}
208       style={Object {}}
209       to={
210         Object {
211           "pathname": "/dashboard",
212           "query": Object {
213             "id": "foo",
214           },
215         }
216       }
217     >
218       overview.page
219     </Link>
220   </li>
221   <li>
222     <Link
223       activeClassName="active"
224       onlyActiveOnIndex={false}
225       style={Object {}}
226       to={
227         Object {
228           "pathname": "/project/issues",
229           "query": Object {
230             "id": "foo",
231             "resolved": "false",
232           },
233         }
234       }
235     >
236       issues.page
237     </Link>
238   </li>
239   <li>
240     <Link
241       activeClassName="active"
242       onlyActiveOnIndex={false}
243       style={Object {}}
244       to={
245         Object {
246           "pathname": "/component_measures",
247           "query": Object {
248             "id": "foo",
249           },
250         }
251       }
252     >
253       layout.measures
254     </Link>
255   </li>
256   <li>
257     <Link
258       activeClassName="active"
259       onlyActiveOnIndex={false}
260       style={Object {}}
261       to={
262         Object {
263           "pathname": "/code",
264           "query": Object {
265             "id": "foo",
266           },
267         }
268       }
269     >
270       code.page
271     </Link>
272   </li>
273   <li>
274     <Link
275       activeClassName="active"
276       onlyActiveOnIndex={false}
277       style={Object {}}
278       to={
279         Object {
280           "pathname": "/project/activity",
281           "query": Object {
282             "id": "foo",
283           },
284         }
285       }
286     >
287       project_activity.page
288     </Link>
289   </li>
290   <li
291     className="dropdown"
292   >
293     <a
294       className="dropdown-toggle is-admin"
295       data-toggle="dropdown"
296       href="#"
297       id="component-navigation-admin"
298     >
299       layout.settings
300        
301       <i
302         className="icon-dropdown"
303       />
304     </a>
305     <ul
306       className="dropdown-menu"
307     >
308       <li>
309         <Link
310           activeClassName="active"
311           onlyActiveOnIndex={false}
312           style={Object {}}
313           to={
314             Object {
315               "pathname": "/project/settings",
316               "query": Object {
317                 "id": "foo",
318               },
319             }
320           }
321         >
322           project_settings.page
323         </Link>
324       </li>
325       <li>
326         <Link
327           activeClassName="active"
328           onlyActiveOnIndex={false}
329           style={Object {}}
330           to={
331             Object {
332               "pathname": "/project/admin/extension/foo",
333               "query": Object {
334                 "id": "foo",
335               },
336             }
337           }
338         >
339           Foo
340         </Link>
341       </li>
342       <li>
343         <Link
344           activeClassName="active"
345           onlyActiveOnIndex={false}
346           style={Object {}}
347           to={
348             Object {
349               "pathname": "/project/admin/extension/bar",
350               "query": Object {
351                 "id": "foo",
352               },
353             }
354           }
355         >
356           Bar
357         </Link>
358       </li>
359       <li>
360         <Link
361           activeClassName="active"
362           onlyActiveOnIndex={false}
363           style={Object {}}
364           to={
365             Object {
366               "pathname": "/project/deletion",
367               "query": Object {
368                 "id": "foo",
369               },
370             }
371           }
372         >
373           deletion.page
374         </Link>
375       </li>
376     </ul>
377   </li>
378   <li
379     className="dropdown"
380   >
381     <a
382       className="dropdown-toggle"
383       data-toggle="dropdown"
384       href="#"
385       id="component-navigation-more"
386     >
387       more
388        
389       <i
390         className="icon-dropdown"
391       />
392     </a>
393     <ul
394       className="dropdown-menu"
395     >
396       <li>
397         <Link
398           activeClassName="active"
399           onlyActiveOnIndex={false}
400           style={Object {}}
401           to={
402             Object {
403               "pathname": "/project/extension/component-foo",
404               "query": Object {
405                 "id": "foo",
406               },
407             }
408           }
409         >
410           ComponentFoo
411         </Link>
412       </li>
413       <li>
414         <Link
415           activeClassName="active"
416           onlyActiveOnIndex={false}
417           style={Object {}}
418           to={
419             Object {
420               "pathname": "/project/extension/component-bar",
421               "query": Object {
422                 "id": "foo",
423               },
424             }
425           }
426         >
427           ComponentBar
428         </Link>
429       </li>
430     </ul>
431   </li>
432 </NavBarTabs>
433 `;