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