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