]> source.dussan.org Git - sonarqube.git/blob
ce37370ca0f9344a3d87f677bfb6e3f1e0cb3e0b
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render maximum 10 languages in the searchbox results 1`] = `
4 <Filter
5   facet={
6     Object {
7       "cs": 4,
8       "g": 1,
9       "java": 39,
10       "js": 1,
11     }
12   }
13   footer={
14     <SearchableFilterFooter
15       isFavorite={true}
16       options={
17         Array [
18           Object {
19             "label": "Flex",
20             "value": "flex",
21           },
22           Object {
23             "label": "PHP",
24             "value": "php",
25           },
26           Object {
27             "label": "Python",
28             "value": "py",
29           },
30           Object {
31             "label": "c",
32             "value": "c",
33           },
34           Object {
35             "label": "d",
36             "value": "d",
37           },
38           Object {
39             "label": "e",
40             "value": "e",
41           },
42           Object {
43             "label": "f",
44             "value": "f",
45           },
46           Object {
47             "label": "h",
48             "value": "h",
49           },
50           Object {
51             "label": "i",
52             "value": "i",
53           },
54           Object {
55             "label": "k",
56             "value": "k",
57           },
58         ]
59       }
60       property="languages"
61       query={
62         Object {
63           "languages": Array [
64             "java",
65             "g",
66           ],
67         }
68       }
69       router={
70         Object {
71           "push": [Function],
72         }
73       }
74     />
75   }
76   getFacetValueForOption={[Function]}
77   halfWidth={false}
78   header={
79     <FilterHeader
80       name="Languages"
81     />
82   }
83   highlightUnder={1}
84   isFavorite={true}
85   options={
86     Array [
87       "java",
88       "cs",
89       "g",
90       "js",
91     ]
92   }
93   property="languages"
94   query={
95     Object {
96       "languages": Array [
97         "java",
98         "g",
99       ],
100     }
101   }
102   renderOption={[Function]}
103   value={
104     Array [
105       "java",
106       "g",
107     ]
108   }
109 />
110 `;
111
112 exports[`should render the languages facet with the selected languages 1`] = `
113 <Filter
114   facet={
115     Object {
116       "cs": 4,
117       "java": 39,
118       "js": 1,
119     }
120   }
121   footer={
122     <SearchableFilterFooter
123       isFavorite={true}
124       options={
125         Array [
126           Object {
127             "label": "Flex",
128             "value": "flex",
129           },
130           Object {
131             "label": "PHP",
132             "value": "php",
133           },
134           Object {
135             "label": "Python",
136             "value": "py",
137           },
138         ]
139       }
140       property="languages"
141       query={
142         Object {
143           "languages": Array [
144             "java",
145             "cs",
146           ],
147         }
148       }
149       router={
150         Object {
151           "push": [Function],
152         }
153       }
154     />
155   }
156   getFacetValueForOption={[Function]}
157   halfWidth={false}
158   header={
159     <FilterHeader
160       name="Languages"
161     />
162   }
163   highlightUnder={1}
164   isFavorite={true}
165   options={
166     Array [
167       "java",
168       "cs",
169       "js",
170     ]
171   }
172   property="languages"
173   query={
174     Object {
175       "languages": Array [
176         "java",
177         "cs",
178       ],
179     }
180   }
181   renderOption={[Function]}
182   value={
183     Array [
184       "java",
185       "cs",
186     ]
187   }
188 />
189 `;
190
191 exports[`should render the languages facet with the selected languages 2`] = `
192 <div
193   className="search-navigator-facet-box"
194   data-key="languages"
195 >
196   <FilterHeader
197     name="Languages"
198   />
199   <div
200     className="search-navigator-facet-list"
201   >
202     <Link
203       className="facet search-navigator-facet projects-facet active"
204       data-key="java"
205       onlyActiveOnIndex={false}
206       style={Object {}}
207       to={
208         Object {
209           "pathname": "/projects/favorite",
210           "query": Object {
211             "languages": "cs",
212           },
213         }
214       }
215     >
216       <span
217         className="facet-name"
218       >
219         <SearchableFilterOption
220           option={
221             Object {
222               "key": "java",
223               "name": "Java",
224             }
225           }
226           optionKey="java"
227         />
228       </span>
229       <span
230         className="facet-stat"
231       >
232         39
233       </span>
234     </Link>
235     <Link
236       className="facet search-navigator-facet projects-facet active"
237       data-key="cs"
238       onlyActiveOnIndex={false}
239       style={Object {}}
240       to={
241         Object {
242           "pathname": "/projects/favorite",
243           "query": Object {
244             "languages": "java",
245           },
246         }
247       }
248     >
249       <span
250         className="facet-name"
251       >
252         <SearchableFilterOption
253           option={
254             Object {
255               "key": "cs",
256               "name": "C#",
257             }
258           }
259           optionKey="cs"
260         />
261       </span>
262       <span
263         className="facet-stat"
264       >
265         4
266       </span>
267     </Link>
268     <Link
269       className="facet search-navigator-facet projects-facet"
270       data-key="js"
271       onlyActiveOnIndex={false}
272       style={Object {}}
273       to={
274         Object {
275           "pathname": "/projects/favorite",
276           "query": Object {
277             "languages": "java,cs,js",
278           },
279         }
280       }
281     >
282       <span
283         className="facet-name"
284       >
285         <SearchableFilterOption
286           option={
287             Object {
288               "key": "js",
289               "name": "JavaScript",
290             }
291           }
292           optionKey="js"
293         />
294       </span>
295       <span
296         className="facet-stat"
297       >
298         1
299       </span>
300     </Link>
301   </div>
302   <SearchableFilterFooter
303     isFavorite={true}
304     options={
305       Array [
306         Object {
307           "label": "Flex",
308           "value": "flex",
309         },
310         Object {
311           "label": "PHP",
312           "value": "php",
313         },
314         Object {
315           "label": "Python",
316           "value": "py",
317         },
318       ]
319     }
320     property="languages"
321     query={
322       Object {
323         "languages": Array [
324           "java",
325           "cs",
326         ],
327       }
328     }
329     router={
330       Object {
331         "push": [Function],
332       }
333     }
334   />
335 </div>
336 `;
337
338 exports[`should render the languages without the ones in the facet 1`] = `
339 <Filter
340   facet={
341     Object {
342       "cs": 4,
343       "java": 39,
344       "js": 1,
345     }
346   }
347   footer={
348     <SearchableFilterFooter
349       options={
350         Array [
351           Object {
352             "label": "Flex",
353             "value": "flex",
354           },
355           Object {
356             "label": "PHP",
357             "value": "php",
358           },
359           Object {
360             "label": "Python",
361             "value": "py",
362           },
363         ]
364       }
365       property="languages"
366       query={
367         Object {
368           "languages": null,
369         }
370       }
371       router={
372         Object {
373           "push": [Function],
374         }
375       }
376     />
377   }
378   getFacetValueForOption={[Function]}
379   halfWidth={false}
380   header={
381     <FilterHeader
382       name="Languages"
383     />
384   }
385   highlightUnder={1}
386   options={
387     Array [
388       "java",
389       "cs",
390       "js",
391     ]
392   }
393   property="languages"
394   query={
395     Object {
396       "languages": null,
397     }
398   }
399   renderOption={[Function]}
400 />
401 `;