]> source.dussan.org Git - sonarqube.git/blob
ac7e9e5b4e6288e8acf4bfb4e22282454b68d3d7
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`renders favorite 1`] = `
4 <li
5   aria-selected={false}
6   key="foo"
7   role="option"
8 >
9   <ForwardRef(Link)
10     data-key="foo"
11     onClick={[MockFunction]}
12     onFocus={[Function]}
13     to={
14       Object {
15         "pathname": "/dashboard",
16         "search": "?id=foo",
17       }
18     }
19   >
20     <div
21       className="navbar-search-item-link little-padded-top"
22       onMouseEnter={[Function]}
23     >
24       <div
25         className="display-flex-center"
26       >
27         <span
28           className="navbar-search-item-icons little-spacer-right"
29         >
30           <FavoriteIcon
31             favorite={true}
32             size={12}
33           />
34           <QualifierIcon
35             className="little-spacer-right"
36             qualifier="TRK"
37           />
38         </span>
39         <span
40           className="navbar-search-item-match"
41         >
42           foo
43         </span>
44       </div>
45       <div
46         className="navbar-search-item-right text-muted-2"
47       >
48         foo
49       </div>
50     </div>
51   </ForwardRef(Link)>
52 </li>
53 `;
54
55 exports[`renders match 1`] = `
56 <li
57   aria-selected={false}
58   key="foo"
59   role="option"
60 >
61   <ForwardRef(Link)
62     data-key="foo"
63     onClick={[MockFunction]}
64     onFocus={[Function]}
65     to={
66       Object {
67         "pathname": "/dashboard",
68         "search": "?id=foo",
69       }
70     }
71   >
72     <div
73       className="navbar-search-item-link little-padded-top"
74       onMouseEnter={[Function]}
75     >
76       <div
77         className="display-flex-center"
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       </div>
96       <div
97         className="navbar-search-item-right text-muted-2"
98       >
99         foo
100       </div>
101     </div>
102   </ForwardRef(Link)>
103 </li>
104 `;
105
106 exports[`renders recently browsed 1`] = `
107 <li
108   aria-selected={false}
109   key="foo"
110   role="option"
111 >
112   <ForwardRef(Link)
113     data-key="foo"
114     onClick={[MockFunction]}
115     onFocus={[Function]}
116     to={
117       Object {
118         "pathname": "/dashboard",
119         "search": "?id=foo",
120       }
121     }
122   >
123     <div
124       className="navbar-search-item-link little-padded-top"
125       onMouseEnter={[Function]}
126     >
127       <div
128         className="display-flex-center"
129       >
130         <span
131           className="navbar-search-item-icons little-spacer-right"
132         >
133           <ClockIcon
134             size={12}
135           />
136           <QualifierIcon
137             className="little-spacer-right"
138             qualifier="TRK"
139           />
140         </span>
141         <span
142           className="navbar-search-item-match"
143         >
144           foo
145         </span>
146       </div>
147       <div
148         className="navbar-search-item-right text-muted-2"
149       >
150         foo
151       </div>
152     </div>
153   </ForwardRef(Link)>
154 </li>
155 `;
156
157 exports[`renders selected 1`] = `
158 <li
159   aria-selected={false}
160   key="foo"
161   role="option"
162 >
163   <ForwardRef(Link)
164     data-key="foo"
165     onClick={[MockFunction]}
166     onFocus={[Function]}
167     to={
168       Object {
169         "pathname": "/dashboard",
170         "search": "?id=foo",
171       }
172     }
173   >
174     <div
175       className="navbar-search-item-link little-padded-top"
176       onMouseEnter={[Function]}
177     >
178       <div
179         className="display-flex-center"
180       >
181         <span
182           className="navbar-search-item-icons little-spacer-right"
183         >
184           <QualifierIcon
185             className="little-spacer-right"
186             qualifier="TRK"
187           />
188         </span>
189         <span
190           className="navbar-search-item-match"
191         >
192           foo
193         </span>
194       </div>
195       <div
196         className="navbar-search-item-right text-muted-2"
197       >
198         foo
199       </div>
200     </div>
201   </ForwardRef(Link)>
202 </li>
203 `;
204
205 exports[`renders selected 2`] = `
206 <li
207   aria-selected={true}
208   className="active"
209   key="foo"
210   role="option"
211 >
212   <ForwardRef(Link)
213     data-key="foo"
214     onClick={[MockFunction]}
215     onFocus={[Function]}
216     to={
217       Object {
218         "pathname": "/dashboard",
219         "search": "?id=foo",
220       }
221     }
222   >
223     <div
224       className="navbar-search-item-link little-padded-top"
225       onMouseEnter={[Function]}
226     >
227       <div
228         className="display-flex-center"
229       >
230         <span
231           className="navbar-search-item-icons little-spacer-right"
232         >
233           <QualifierIcon
234             className="little-spacer-right"
235             qualifier="TRK"
236           />
237         </span>
238         <span
239           className="navbar-search-item-match"
240         >
241           foo
242         </span>
243       </div>
244       <div
245         className="navbar-search-item-right text-muted-2"
246       >
247         foo
248       </div>
249     </div>
250   </ForwardRef(Link)>
251 </li>
252 `;