]> source.dussan.org Git - sonarqube.git/blob
c5ef95acbd7d8a5928d45c35d8c7df42935ea389
[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     projects.sort_by
7     :
8   </label>
9   <Select
10     addLabelText="Add \\"{label}\\"?"
11     arrowRenderer={[Function]}
12     autosize={true}
13     backspaceRemoves={true}
14     backspaceToRemoveMessage="Press backspace to remove {label}"
15     className="little-spacer-left input-large"
16     clearAllText="Clear all"
17     clearValueText="Clear value"
18     clearable={false}
19     delimiter=","
20     disabled={false}
21     escapeClearsValue={true}
22     filterOptions={[Function]}
23     ignoreAccents={true}
24     ignoreCase={true}
25     inputProps={Object {}}
26     isLoading={false}
27     joinValues={false}
28     labelKey="label"
29     matchPos="any"
30     matchProp="any"
31     menuBuffer={0}
32     menuRenderer={[Function]}
33     multi={false}
34     noResultsText="No results found"
35     onBlurResetsInput={true}
36     onChange={[Function]}
37     onCloseResetsInput={true}
38     openAfterFocus={false}
39     optionComponent={[Function]}
40     options={
41       Array [
42         Object {
43           "complement": undefined,
44           "label": "projects.sorting.name",
45           "short": undefined,
46           "value": "name",
47         },
48         Object {
49           "complement": undefined,
50           "label": "projects.sorting.analysis_date",
51           "short": undefined,
52           "value": "analysis_date",
53         },
54         Object {
55           "complement": undefined,
56           "label": "projects.sorting.reliability",
57           "short": undefined,
58           "value": "reliability",
59         },
60         Object {
61           "complement": undefined,
62           "label": "projects.sorting.security",
63           "short": undefined,
64           "value": "security",
65         },
66         Object {
67           "complement": undefined,
68           "label": "projects.sorting.maintainability",
69           "short": undefined,
70           "value": "maintainability",
71         },
72         Object {
73           "complement": undefined,
74           "label": "projects.sorting.coverage",
75           "short": undefined,
76           "value": "coverage",
77         },
78         Object {
79           "complement": undefined,
80           "label": "projects.sorting.duplications",
81           "short": undefined,
82           "value": "duplications",
83         },
84         Object {
85           "complement": undefined,
86           "label": "projects.sorting.size",
87           "short": undefined,
88           "value": "size",
89         },
90       ]
91     }
92     pageSize={5}
93     placeholder="Select..."
94     required={false}
95     scrollMenuIntoView={true}
96     searchable={false}
97     simpleValue={false}
98     tabSelectsValue={true}
99     value="vulnerability"
100     valueComponent={[Function]}
101     valueKey="value"
102   />
103   <Tooltip
104     overlay="projects.sort_descending"
105     placement="bottom"
106   >
107     <a
108       className="spacer-left button-icon"
109       href="#"
110       onClick={[Function]}
111     >
112       <SortDescIcon
113         className="little-spacer-top"
114       />
115     </a>
116   </Tooltip>
117 </div>
118 `;
119
120 exports[`should render correctly for leak view 1`] = `
121 <div>
122   <label>
123     projects.sort_by
124     :
125   </label>
126   <Select
127     addLabelText="Add \\"{label}\\"?"
128     arrowRenderer={[Function]}
129     autosize={true}
130     backspaceRemoves={true}
131     backspaceToRemoveMessage="Press backspace to remove {label}"
132     className="little-spacer-left input-large"
133     clearAllText="Clear all"
134     clearValueText="Clear value"
135     clearable={false}
136     delimiter=","
137     disabled={false}
138     escapeClearsValue={true}
139     filterOptions={[Function]}
140     ignoreAccents={true}
141     ignoreCase={true}
142     inputProps={Object {}}
143     isLoading={false}
144     joinValues={false}
145     labelKey="label"
146     matchPos="any"
147     matchProp="any"
148     menuBuffer={0}
149     menuRenderer={[Function]}
150     multi={false}
151     noResultsText="No results found"
152     onBlurResetsInput={true}
153     onChange={[Function]}
154     onCloseResetsInput={true}
155     openAfterFocus={false}
156     optionComponent={[Function]}
157     options={
158       Array [
159         Object {
160           "complement": undefined,
161           "label": "projects.sorting.name",
162           "short": undefined,
163           "value": "name",
164         },
165         Object {
166           "complement": undefined,
167           "label": "projects.sorting.analysis_date",
168           "short": undefined,
169           "value": "analysis_date",
170         },
171         Object {
172           "complement": "projects.sorting.on_new_code",
173           "label": "projects.sorting.new_reliability",
174           "short": "projects.sorting.new_reliability.short",
175           "value": "new_reliability",
176         },
177         Object {
178           "complement": "projects.sorting.on_new_code",
179           "label": "projects.sorting.new_security",
180           "short": "projects.sorting.new_security.short",
181           "value": "new_security",
182         },
183         Object {
184           "complement": "projects.sorting.on_new_code",
185           "label": "projects.sorting.new_maintainability",
186           "short": "projects.sorting.new_maintainability.short",
187           "value": "new_maintainability",
188         },
189         Object {
190           "complement": "projects.sorting.on_new_code",
191           "label": "projects.sorting.new_coverage",
192           "short": "projects.sorting.new_coverage.short",
193           "value": "new_coverage",
194         },
195         Object {
196           "complement": "projects.sorting.on_new_lines",
197           "label": "projects.sorting.new_duplications",
198           "short": "projects.sorting.new_duplications.short",
199           "value": "new_duplications",
200         },
201         Object {
202           "complement": undefined,
203           "label": "projects.sorting.new_lines",
204           "short": undefined,
205           "value": "new_lines",
206         },
207       ]
208     }
209     pageSize={5}
210     placeholder="Select..."
211     required={false}
212     scrollMenuIntoView={true}
213     searchable={false}
214     simpleValue={false}
215     tabSelectsValue={true}
216     value="new_coverage"
217     valueComponent={[Function]}
218     valueKey="value"
219   />
220   <Tooltip
221     overlay="projects.sort_ascending"
222     placement="bottom"
223   >
224     <a
225       className="spacer-left button-icon"
226       href="#"
227       onClick={[Function]}
228     >
229       <SortAscIcon
230         className="little-spacer-top"
231       />
232     </a>
233   </Tooltip>
234 </div>
235 `;
236
237 exports[`should render correctly for overall view 1`] = `
238 <div>
239   <label>
240     projects.sort_by
241     :
242   </label>
243   <Select
244     addLabelText="Add \\"{label}\\"?"
245     arrowRenderer={[Function]}
246     autosize={true}
247     backspaceRemoves={true}
248     backspaceToRemoveMessage="Press backspace to remove {label}"
249     className="little-spacer-left input-large"
250     clearAllText="Clear all"
251     clearValueText="Clear value"
252     clearable={false}
253     delimiter=","
254     disabled={false}
255     escapeClearsValue={true}
256     filterOptions={[Function]}
257     ignoreAccents={true}
258     ignoreCase={true}
259     inputProps={Object {}}
260     isLoading={false}
261     joinValues={false}
262     labelKey="label"
263     matchPos="any"
264     matchProp="any"
265     menuBuffer={0}
266     menuRenderer={[Function]}
267     multi={false}
268     noResultsText="No results found"
269     onBlurResetsInput={true}
270     onChange={[Function]}
271     onCloseResetsInput={true}
272     openAfterFocus={false}
273     optionComponent={[Function]}
274     options={
275       Array [
276         Object {
277           "complement": undefined,
278           "label": "projects.sorting.name",
279           "short": undefined,
280           "value": "name",
281         },
282         Object {
283           "complement": undefined,
284           "label": "projects.sorting.analysis_date",
285           "short": undefined,
286           "value": "analysis_date",
287         },
288         Object {
289           "complement": undefined,
290           "label": "projects.sorting.reliability",
291           "short": undefined,
292           "value": "reliability",
293         },
294         Object {
295           "complement": undefined,
296           "label": "projects.sorting.security",
297           "short": undefined,
298           "value": "security",
299         },
300         Object {
301           "complement": undefined,
302           "label": "projects.sorting.maintainability",
303           "short": undefined,
304           "value": "maintainability",
305         },
306         Object {
307           "complement": undefined,
308           "label": "projects.sorting.coverage",
309           "short": undefined,
310           "value": "coverage",
311         },
312         Object {
313           "complement": undefined,
314           "label": "projects.sorting.duplications",
315           "short": undefined,
316           "value": "duplications",
317         },
318         Object {
319           "complement": undefined,
320           "label": "projects.sorting.size",
321           "short": undefined,
322           "value": "size",
323         },
324       ]
325     }
326     pageSize={5}
327     placeholder="Select..."
328     required={false}
329     scrollMenuIntoView={true}
330     searchable={false}
331     simpleValue={false}
332     tabSelectsValue={true}
333     value="name"
334     valueComponent={[Function]}
335     valueKey="value"
336   />
337   <Tooltip
338     overlay="projects.sort_ascending"
339     placement="bottom"
340   >
341     <a
342       className="spacer-left button-icon"
343       href="#"
344       onClick={[Function]}
345     >
346       <SortAscIcon
347         className="little-spacer-top"
348       />
349     </a>
350   </Tooltip>
351 </div>
352 `;