]> source.dussan.org Git - sonarqube.git/blob
21d0975f90598e6dda40f2ef09b4278e53e083de
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders favorite 1`] = `
4 <li
5   key="foo"
6 >
7   <Tooltip
8     mouseEnterDelay={1}
9     overlay="foo"
10     placement="left"
11     visible={false}
12   >
13     <Link
14       data-key="foo"
15       onClick={[MockFunction]}
16       onlyActiveOnIndex={false}
17       style={Object {}}
18       to={
19         Object {
20           "pathname": "/dashboard",
21           "query": Object {
22             "branch": undefined,
23             "id": "foo",
24           },
25         }
26       }
27     >
28       <span
29         className="navbar-search-item-link"
30         onMouseEnter={[Function]}
31       >
32         <span
33           className="navbar-search-item-icons little-spacer-right"
34         >
35           <FavoriteIcon
36             favorite={true}
37             size={12}
38           />
39           <QualifierIcon
40             className="little-spacer-right"
41             qualifier="TRK"
42           />
43         </span>
44         <span
45           className="navbar-search-item-match"
46         >
47           foo
48         </span>
49       </span>
50     </Link>
51   </Tooltip>
52 </li>
53 `;
54
55 exports[`renders match 1`] = `
56 <li
57   key="foo"
58 >
59   <Tooltip
60     mouseEnterDelay={1}
61     overlay="foo"
62     placement="left"
63     visible={false}
64   >
65     <Link
66       data-key="foo"
67       onClick={[MockFunction]}
68       onlyActiveOnIndex={false}
69       style={Object {}}
70       to={
71         Object {
72           "pathname": "/dashboard",
73           "query": Object {
74             "branch": undefined,
75             "id": "foo",
76           },
77         }
78       }
79     >
80       <span
81         className="navbar-search-item-link"
82         onMouseEnter={[Function]}
83       >
84         <span
85           className="navbar-search-item-icons little-spacer-right"
86         >
87           <QualifierIcon
88             className="little-spacer-right"
89             qualifier="TRK"
90           />
91         </span>
92         <span
93           className="navbar-search-item-match"
94           dangerouslySetInnerHTML={
95             Object {
96               "__html": "f<mark>o</mark>o",
97             }
98           }
99         />
100       </span>
101     </Link>
102   </Tooltip>
103 </li>
104 `;
105
106 exports[`renders organizations 1`] = `
107 <li
108   key="foo"
109 >
110   <Tooltip
111     mouseEnterDelay={1}
112     overlay="foo"
113     placement="left"
114     visible={false}
115   >
116     <Link
117       data-key="foo"
118       onClick={[MockFunction]}
119       onlyActiveOnIndex={false}
120       style={Object {}}
121       to={
122         Object {
123           "pathname": "/dashboard",
124           "query": Object {
125             "branch": undefined,
126             "id": "foo",
127           },
128         }
129       }
130     >
131       <span
132         className="navbar-search-item-link"
133         onMouseEnter={[Function]}
134       >
135         <span
136           className="navbar-search-item-icons little-spacer-right"
137         >
138           <ClockIcon
139             size={12}
140           />
141           <QualifierIcon
142             className="little-spacer-right"
143             qualifier="TRK"
144           />
145         </span>
146         <span
147           className="navbar-search-item-match"
148         >
149           foo
150         </span>
151         <div
152           className="navbar-search-item-right text-muted-2"
153         >
154           bar
155         </div>
156       </span>
157     </Link>
158   </Tooltip>
159 </li>
160 `;
161
162 exports[`renders organizations 2`] = `
163 <li
164   key="foo"
165 >
166   <Tooltip
167     mouseEnterDelay={1}
168     overlay="foo"
169     placement="left"
170     visible={false}
171   >
172     <Link
173       data-key="foo"
174       onClick={[MockFunction]}
175       onlyActiveOnIndex={false}
176       style={Object {}}
177       to={
178         Object {
179           "pathname": "/dashboard",
180           "query": Object {
181             "branch": undefined,
182             "id": "foo",
183           },
184         }
185       }
186     >
187       <span
188         className="navbar-search-item-link"
189         onMouseEnter={[Function]}
190       >
191         <span
192           className="navbar-search-item-icons little-spacer-right"
193         >
194           <ClockIcon
195             size={12}
196           />
197           <QualifierIcon
198             className="little-spacer-right"
199             qualifier="TRK"
200           />
201         </span>
202         <span
203           className="navbar-search-item-match"
204         >
205           foo
206         </span>
207       </span>
208     </Link>
209   </Tooltip>
210 </li>
211 `;
212
213 exports[`renders projects 1`] = `
214 <li
215   key="qwe"
216 >
217   <Tooltip
218     mouseEnterDelay={1}
219     overlay="qwe"
220     placement="left"
221     visible={false}
222   >
223     <Link
224       data-key="qwe"
225       onClick={[MockFunction]}
226       onlyActiveOnIndex={false}
227       style={Object {}}
228       to={
229         Object {
230           "pathname": "/dashboard",
231           "query": Object {
232             "branch": undefined,
233             "id": "qwe",
234           },
235         }
236       }
237     >
238       <span
239         className="navbar-search-item-link"
240         onMouseEnter={[Function]}
241       >
242         <span
243           className="navbar-search-item-icons little-spacer-right"
244         >
245           <ClockIcon
246             size={12}
247           />
248           <QualifierIcon
249             className="little-spacer-right"
250             qualifier="BRC"
251           />
252         </span>
253         <span
254           className="navbar-search-item-match"
255         >
256           qwe
257         </span>
258         <div
259           className="navbar-search-item-right text-muted-2"
260         >
261           foo
262         </div>
263       </span>
264     </Link>
265   </Tooltip>
266 </li>
267 `;
268
269 exports[`renders recently browsed 1`] = `
270 <li
271   key="foo"
272 >
273   <Tooltip
274     mouseEnterDelay={1}
275     overlay="foo"
276     placement="left"
277     visible={false}
278   >
279     <Link
280       data-key="foo"
281       onClick={[MockFunction]}
282       onlyActiveOnIndex={false}
283       style={Object {}}
284       to={
285         Object {
286           "pathname": "/dashboard",
287           "query": Object {
288             "branch": undefined,
289             "id": "foo",
290           },
291         }
292       }
293     >
294       <span
295         className="navbar-search-item-link"
296         onMouseEnter={[Function]}
297       >
298         <span
299           className="navbar-search-item-icons little-spacer-right"
300         >
301           <ClockIcon
302             size={12}
303           />
304           <QualifierIcon
305             className="little-spacer-right"
306             qualifier="TRK"
307           />
308         </span>
309         <span
310           className="navbar-search-item-match"
311         >
312           foo
313         </span>
314       </span>
315     </Link>
316   </Tooltip>
317 </li>
318 `;
319
320 exports[`renders selected 1`] = `
321 <li
322   key="foo"
323 >
324   <Tooltip
325     mouseEnterDelay={1}
326     overlay="foo"
327     placement="left"
328     visible={false}
329   >
330     <Link
331       data-key="foo"
332       onClick={[MockFunction]}
333       onlyActiveOnIndex={false}
334       style={Object {}}
335       to={
336         Object {
337           "pathname": "/dashboard",
338           "query": Object {
339             "branch": undefined,
340             "id": "foo",
341           },
342         }
343       }
344     >
345       <span
346         className="navbar-search-item-link"
347         onMouseEnter={[Function]}
348       >
349         <span
350           className="navbar-search-item-icons little-spacer-right"
351         >
352           <QualifierIcon
353             className="little-spacer-right"
354             qualifier="TRK"
355           />
356         </span>
357         <span
358           className="navbar-search-item-match"
359         >
360           foo
361         </span>
362       </span>
363     </Link>
364   </Tooltip>
365 </li>
366 `;
367
368 exports[`renders selected 2`] = `
369 <li
370   className="active"
371   key="foo"
372 >
373   <Tooltip
374     mouseEnterDelay={1}
375     overlay="foo"
376     placement="left"
377     visible={false}
378   >
379     <Link
380       data-key="foo"
381       onClick={[MockFunction]}
382       onlyActiveOnIndex={false}
383       style={Object {}}
384       to={
385         Object {
386           "pathname": "/dashboard",
387           "query": Object {
388             "branch": undefined,
389             "id": "foo",
390           },
391         }
392       }
393     >
394       <span
395         className="navbar-search-item-link"
396         onMouseEnter={[Function]}
397       >
398         <span
399           className="navbar-search-item-icons little-spacer-right"
400         >
401           <QualifierIcon
402             className="little-spacer-right"
403             qualifier="TRK"
404           />
405         </span>
406         <span
407           className="navbar-search-item-match"
408         >
409           foo
410         </span>
411       </span>
412     </Link>
413   </Tooltip>
414 </li>
415 `;