]> source.dussan.org Git - sonarqube.git/blob
44825139d16fc6e83bd5860db5c4f58535fc514c
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should handle the descending sort direction 1`] = `
4 <div>
5   <label
6     id="aria-projects-sort"
7   >
8     projects.sort_by
9     :
10   </label>
11   <Select
12     aria-labelledby="aria-projects-sort"
13     className="little-spacer-left input-medium it__projects-sort-select"
14     components={
15       {
16         "Option": [Function],
17       }
18     }
19     isClearable={false}
20     isSearchable={false}
21     onChange={[Function]}
22     options={
23       [
24         {
25           "className": undefined,
26           "label": "projects.sorting.name",
27           "value": "name",
28         },
29         {
30           "className": undefined,
31           "label": "projects.sorting.analysis_date",
32           "value": "analysis_date",
33         },
34         {
35           "className": undefined,
36           "label": "projects.sorting.reliability",
37           "value": "reliability",
38         },
39         {
40           "className": undefined,
41           "label": "projects.sorting.security",
42           "value": "security",
43         },
44         {
45           "className": undefined,
46           "label": "projects.sorting.security_review",
47           "value": "security_review",
48         },
49         {
50           "className": undefined,
51           "label": "projects.sorting.maintainability",
52           "value": "maintainability",
53         },
54         {
55           "className": undefined,
56           "label": "projects.sorting.coverage",
57           "value": "coverage",
58         },
59         {
60           "className": undefined,
61           "label": "projects.sorting.duplications",
62           "value": "duplications",
63         },
64         {
65           "className": undefined,
66           "label": "projects.sorting.size",
67           "value": "size",
68         },
69       ]
70     }
71   />
72   <Tooltip
73     mouseLeaveDelay={1}
74     overlay="projects.sort_descending"
75   >
76     <ButtonIcon
77       aria-label="projects.sort_descending"
78       className="js-projects-sorting-invert spacer-left"
79       color="#525252"
80       innerRef={[Function]}
81       onClick={[Function]}
82     >
83       <SortDescIcon
84         className=""
85       />
86     </ButtonIcon>
87   </Tooltip>
88 </div>
89 `;
90
91 exports[`should render correctly for leak view 1`] = `
92 <div>
93   <label
94     id="aria-projects-sort"
95   >
96     projects.sort_by
97     :
98   </label>
99   <Select
100     aria-labelledby="aria-projects-sort"
101     className="little-spacer-left input-medium it__projects-sort-select"
102     components={
103       {
104         "Option": [Function],
105       }
106     }
107     isClearable={false}
108     isSearchable={false}
109     onChange={[Function]}
110     options={
111       [
112         {
113           "className": undefined,
114           "label": "projects.sorting.analysis_date",
115           "value": "analysis_date",
116         },
117         {
118           "className": undefined,
119           "label": "projects.sorting.name",
120           "value": "name",
121         },
122         {
123           "className": "projects-leak-sorting-option",
124           "label": "projects.sorting.new_reliability",
125           "value": "new_reliability",
126         },
127         {
128           "className": "projects-leak-sorting-option",
129           "label": "projects.sorting.new_security",
130           "value": "new_security",
131         },
132         {
133           "className": "projects-leak-sorting-option",
134           "label": "projects.sorting.new_security_review",
135           "value": "new_security_review",
136         },
137         {
138           "className": "projects-leak-sorting-option",
139           "label": "projects.sorting.new_maintainability",
140           "value": "new_maintainability",
141         },
142         {
143           "className": "projects-leak-sorting-option",
144           "label": "projects.sorting.new_coverage",
145           "value": "new_coverage",
146         },
147         {
148           "className": "projects-leak-sorting-option",
149           "label": "projects.sorting.new_duplications",
150           "value": "new_duplications",
151         },
152         {
153           "className": "projects-leak-sorting-option",
154           "label": "projects.sorting.new_lines",
155           "value": "new_lines",
156         },
157       ]
158     }
159     value={
160       {
161         "className": "projects-leak-sorting-option",
162         "label": "projects.sorting.new_coverage",
163         "value": "new_coverage",
164       }
165     }
166   />
167   <Tooltip
168     mouseLeaveDelay={1}
169     overlay="projects.sort_ascending"
170   >
171     <ButtonIcon
172       aria-label="projects.sort_ascending"
173       className="js-projects-sorting-invert spacer-left"
174       color="#525252"
175       innerRef={[Function]}
176       onClick={[Function]}
177     >
178       <SortAscIcon
179         className=""
180       />
181     </ButtonIcon>
182   </Tooltip>
183 </div>
184 `;
185
186 exports[`should render correctly for overall view 1`] = `
187 <div>
188   <label
189     id="aria-projects-sort"
190   >
191     projects.sort_by
192     :
193   </label>
194   <Select
195     aria-labelledby="aria-projects-sort"
196     className="little-spacer-left input-medium it__projects-sort-select"
197     components={
198       {
199         "Option": [Function],
200       }
201     }
202     isClearable={false}
203     isSearchable={false}
204     onChange={[Function]}
205     options={
206       [
207         {
208           "className": undefined,
209           "label": "projects.sorting.name",
210           "value": "name",
211         },
212         {
213           "className": undefined,
214           "label": "projects.sorting.analysis_date",
215           "value": "analysis_date",
216         },
217         {
218           "className": undefined,
219           "label": "projects.sorting.reliability",
220           "value": "reliability",
221         },
222         {
223           "className": undefined,
224           "label": "projects.sorting.security",
225           "value": "security",
226         },
227         {
228           "className": undefined,
229           "label": "projects.sorting.security_review",
230           "value": "security_review",
231         },
232         {
233           "className": undefined,
234           "label": "projects.sorting.maintainability",
235           "value": "maintainability",
236         },
237         {
238           "className": undefined,
239           "label": "projects.sorting.coverage",
240           "value": "coverage",
241         },
242         {
243           "className": undefined,
244           "label": "projects.sorting.duplications",
245           "value": "duplications",
246         },
247         {
248           "className": undefined,
249           "label": "projects.sorting.size",
250           "value": "size",
251         },
252       ]
253     }
254     value={
255       {
256         "className": undefined,
257         "label": "projects.sorting.name",
258         "value": "name",
259       }
260     }
261   />
262   <Tooltip
263     mouseLeaveDelay={1}
264     overlay="projects.sort_ascending"
265   >
266     <ButtonIcon
267       aria-label="projects.sort_ascending"
268       className="js-projects-sorting-invert spacer-left"
269       color="#525252"
270       innerRef={[Function]}
271       onClick={[Function]}
272     >
273       <SortAscIcon
274         className=""
275       />
276     </ButtonIcon>
277   </Tooltip>
278 </div>
279 `;
280
281 exports[`should render option correctly 1`] = `
282 <Option
283   className="it__project-sort-option-foo undefined"
284   data={
285     {
286       "label": "foo",
287       "short": "fo",
288       "value": "foo",
289     }
290   }
291 >
292   fo
293 </Option>
294 `;
295
296 exports[`should render option correctly 2`] = `
297 <Option
298   className="it__project-sort-option-foo undefined"
299   data={
300     {
301       "label": "foo",
302       "value": "foo",
303     }
304   }
305 />
306 `;