]> source.dussan.org Git - sonarqube.git/blob
163a477a60f8df17d62bc8dcfd52951249d643ad
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for createdInLast month 1`] = `
4 <FacetBox
5   property="createdAt"
6 >
7   <FacetHeader
8     fetching={false}
9     name="issues.facet.createdAt"
10     onClear={[Function]}
11     onClick={[Function]}
12     open={true}
13     values={
14       Array [
15         "issues.facet.createdAt.last_month",
16       ]
17     }
18   />
19   <div>
20     <div
21       className="search-navigator-date-facet-selection"
22     >
23       <DateRangeInput
24         onChange={[Function]}
25         value={
26           Object {
27             "from": undefined,
28             "to": undefined,
29           }
30         }
31       />
32     </div>
33     <div
34       className="spacer-top issues-predefined-periods"
35     >
36       <FacetItem
37         active={false}
38         halfWidth={false}
39         loading={false}
40         name="issues.facet.createdAt.all"
41         onClick={[Function]}
42         tooltip="issues.facet.createdAt.all"
43         value=""
44       />
45       <FacetItem
46         active={false}
47         halfWidth={false}
48         loading={false}
49         name="issues.facet.createdAt.last_week"
50         onClick={[Function]}
51         tooltip="issues.facet.createdAt.last_week"
52         value="1w"
53       />
54       <FacetItem
55         active={true}
56         halfWidth={false}
57         loading={false}
58         name="issues.facet.createdAt.last_month"
59         onClick={[Function]}
60         tooltip="issues.facet.createdAt.last_month"
61         value="1m"
62       />
63       <FacetItem
64         active={false}
65         halfWidth={false}
66         loading={false}
67         name="issues.facet.createdAt.last_year"
68         onClick={[Function]}
69         tooltip="issues.facet.createdAt.last_year"
70         value="1y"
71       />
72     </div>
73   </div>
74 </FacetBox>
75 `;
76
77 exports[`should render correctly for createdInLast week 1`] = `
78 <FacetBox
79   property="createdAt"
80 >
81   <FacetHeader
82     fetching={false}
83     name="issues.facet.createdAt"
84     onClear={[Function]}
85     onClick={[Function]}
86     open={true}
87     values={
88       Array [
89         "issues.facet.createdAt.last_week",
90       ]
91     }
92   />
93   <div>
94     <div
95       className="search-navigator-date-facet-selection"
96     >
97       <DateRangeInput
98         onChange={[Function]}
99         value={
100           Object {
101             "from": undefined,
102             "to": undefined,
103           }
104         }
105       />
106     </div>
107     <div
108       className="spacer-top issues-predefined-periods"
109     >
110       <FacetItem
111         active={false}
112         halfWidth={false}
113         loading={false}
114         name="issues.facet.createdAt.all"
115         onClick={[Function]}
116         tooltip="issues.facet.createdAt.all"
117         value=""
118       />
119       <FacetItem
120         active={true}
121         halfWidth={false}
122         loading={false}
123         name="issues.facet.createdAt.last_week"
124         onClick={[Function]}
125         tooltip="issues.facet.createdAt.last_week"
126         value="1w"
127       />
128       <FacetItem
129         active={false}
130         halfWidth={false}
131         loading={false}
132         name="issues.facet.createdAt.last_month"
133         onClick={[Function]}
134         tooltip="issues.facet.createdAt.last_month"
135         value="1m"
136       />
137       <FacetItem
138         active={false}
139         halfWidth={false}
140         loading={false}
141         name="issues.facet.createdAt.last_year"
142         onClick={[Function]}
143         tooltip="issues.facet.createdAt.last_year"
144         value="1y"
145       />
146     </div>
147   </div>
148 </FacetBox>
149 `;
150
151 exports[`should render correctly for createdInLast year 1`] = `
152 <FacetBox
153   property="createdAt"
154 >
155   <FacetHeader
156     fetching={false}
157     name="issues.facet.createdAt"
158     onClear={[Function]}
159     onClick={[Function]}
160     open={true}
161     values={
162       Array [
163         "issues.facet.createdAt.last_year",
164       ]
165     }
166   />
167   <div>
168     <div
169       className="search-navigator-date-facet-selection"
170     >
171       <DateRangeInput
172         onChange={[Function]}
173         value={
174           Object {
175             "from": undefined,
176             "to": undefined,
177           }
178         }
179       />
180     </div>
181     <div
182       className="spacer-top issues-predefined-periods"
183     >
184       <FacetItem
185         active={false}
186         halfWidth={false}
187         loading={false}
188         name="issues.facet.createdAt.all"
189         onClick={[Function]}
190         tooltip="issues.facet.createdAt.all"
191         value=""
192       />
193       <FacetItem
194         active={false}
195         halfWidth={false}
196         loading={false}
197         name="issues.facet.createdAt.last_week"
198         onClick={[Function]}
199         tooltip="issues.facet.createdAt.last_week"
200         value="1w"
201       />
202       <FacetItem
203         active={false}
204         halfWidth={false}
205         loading={false}
206         name="issues.facet.createdAt.last_month"
207         onClick={[Function]}
208         tooltip="issues.facet.createdAt.last_month"
209         value="1m"
210       />
211       <FacetItem
212         active={true}
213         halfWidth={false}
214         loading={false}
215         name="issues.facet.createdAt.last_year"
216         onClick={[Function]}
217         tooltip="issues.facet.createdAt.last_year"
218         value="1y"
219       />
220     </div>
221   </div>
222 </FacetBox>
223 `;
224
225 exports[`should render correctly: clear 1`] = `
226 <FacetBox
227   property="createdAt"
228 >
229   <FacetHeader
230     fetching={false}
231     name="issues.facet.createdAt"
232     onClear={[Function]}
233     onClick={[Function]}
234     open={true}
235     values={Array []}
236   />
237   <div>
238     <div
239       className="search-navigator-date-facet-selection"
240     >
241       <DateRangeInput
242         onChange={[Function]}
243         value={
244           Object {
245             "from": undefined,
246             "to": undefined,
247           }
248         }
249       />
250     </div>
251     <div
252       className="spacer-top issues-predefined-periods"
253     >
254       <FacetItem
255         active={true}
256         halfWidth={false}
257         loading={false}
258         name="issues.facet.createdAt.all"
259         onClick={[Function]}
260         tooltip="issues.facet.createdAt.all"
261         value=""
262       />
263       <FacetItem
264         active={false}
265         halfWidth={false}
266         loading={false}
267         name="issues.facet.createdAt.last_week"
268         onClick={[Function]}
269         tooltip="issues.facet.createdAt.last_week"
270         value="1w"
271       />
272       <FacetItem
273         active={false}
274         halfWidth={false}
275         loading={false}
276         name="issues.facet.createdAt.last_month"
277         onClick={[Function]}
278         tooltip="issues.facet.createdAt.last_month"
279         value="1m"
280       />
281       <FacetItem
282         active={false}
283         halfWidth={false}
284         loading={false}
285         name="issues.facet.createdAt.last_year"
286         onClick={[Function]}
287         tooltip="issues.facet.createdAt.last_year"
288         value="1y"
289       />
290     </div>
291   </div>
292 </FacetBox>
293 `;
294
295 exports[`should render correctly: closed 1`] = `
296 <FacetBox
297   property="createdAt"
298 >
299   <FacetHeader
300     fetching={false}
301     name="issues.facet.createdAt"
302     onClear={[Function]}
303     onClick={[Function]}
304     open={false}
305     values={Array []}
306   />
307 </FacetBox>
308 `;
309
310 exports[`should render correctly: created after 1`] = `
311 <FacetBox
312   property="createdAt"
313 >
314   <FacetHeader
315     fetching={false}
316     name="issues.facet.createdAt"
317     onClear={[Function]}
318     onClick={[Function]}
319     open={true}
320     values={
321       Array [
322         "formatted.Invalid Date",
323       ]
324     }
325   />
326   <div
327     className="search-navigator-facet-container"
328   >
329     <strong>
330       after
331        
332     </strong>
333     <DateTimeFormatter
334       date={Date { NaN }}
335     />
336   </div>
337 </FacetBox>
338 `;
339
340 exports[`should render correctly: created after timestamp 1`] = `
341 <FacetBox
342   property="createdAt"
343 >
344   <FacetHeader
345     fetching={false}
346     name="issues.facet.createdAt"
347     onClear={[Function]}
348     onClick={[Function]}
349     open={true}
350     values={
351       Array [
352         "formatted.Invalid Date",
353       ]
354     }
355   />
356   <div
357     className="search-navigator-facet-container"
358   >
359     <strong>
360       after
361        
362     </strong>
363     <DateTimeFormatter
364       date={Date { NaN }}
365     />
366   </div>
367 </FacetBox>
368 `;
369
370 exports[`should render correctly: created at 1`] = `
371 <FacetBox
372   property="createdAt"
373 >
374   <FacetHeader
375     fetching={false}
376     name="issues.facet.createdAt"
377     onClear={[Function]}
378     onClick={[Function]}
379     open={true}
380     values={
381       Array [
382         "formatted.2019.05.21T13:33:00Z",
383       ]
384     }
385   />
386   <div
387     className="search-navigator-facet-container"
388   >
389     <DateTimeFormatter
390       date="2019.05.21T13:33:00Z"
391     />
392     <br />
393     <span
394       className="note"
395     >
396       <DateFromNow
397         date="2019.05.21T13:33:00Z"
398       />
399     </span>
400   </div>
401 </FacetBox>
402 `;
403
404 exports[`should render correctly: portfolio 1`] = `
405 <FacetBox
406   property="createdAt"
407 >
408   <FacetHeader
409     fetching={false}
410     name="issues.facet.createdAt"
411     onClear={[Function]}
412     onClick={[Function]}
413     open={true}
414     values={Array []}
415   />
416   <div>
417     <div
418       className="search-navigator-date-facet-selection"
419     >
420       <DateRangeInput
421         onChange={[Function]}
422         value={
423           Object {
424             "from": undefined,
425             "to": undefined,
426           }
427         }
428       />
429     </div>
430     <div
431       className="spacer-top issues-predefined-periods"
432     >
433       <FacetItem
434         active={true}
435         halfWidth={false}
436         loading={false}
437         name="issues.facet.createdAt.all"
438         onClick={[Function]}
439         tooltip="issues.facet.createdAt.all"
440         value=""
441       />
442       <FacetItem
443         active={false}
444         halfWidth={false}
445         loading={false}
446         name="issues.facet.createdAt.last_week"
447         onClick={[Function]}
448         tooltip="issues.facet.createdAt.last_week"
449         value="1w"
450       />
451       <FacetItem
452         active={false}
453         halfWidth={false}
454         loading={false}
455         name="issues.facet.createdAt.last_month"
456         onClick={[Function]}
457         tooltip="issues.facet.createdAt.last_month"
458         value="1m"
459       />
460       <FacetItem
461         active={false}
462         halfWidth={false}
463         loading={false}
464         name="issues.facet.createdAt.last_year"
465         onClick={[Function]}
466         tooltip="issues.facet.createdAt.last_year"
467         value="1y"
468       />
469     </div>
470   </div>
471 </FacetBox>
472 `;
473
474 exports[`should render correctly: project 1`] = `
475 <FacetBox
476   property="createdAt"
477 >
478   <FacetHeader
479     fetching={false}
480     name="issues.facet.createdAt"
481     onClear={[Function]}
482     onClick={[Function]}
483     open={true}
484     values={Array []}
485   />
486   <div>
487     <div
488       className="search-navigator-date-facet-selection"
489     >
490       <DateRangeInput
491         onChange={[Function]}
492         value={
493           Object {
494             "from": undefined,
495             "to": undefined,
496           }
497         }
498       />
499     </div>
500     <div
501       className="spacer-top issues-predefined-periods"
502     >
503       <FacetItem
504         active={true}
505         halfWidth={false}
506         loading={false}
507         name="issues.facet.createdAt.all"
508         onClick={[Function]}
509         tooltip="issues.facet.createdAt.all"
510         value=""
511       />
512       <FacetItem
513         active={false}
514         halfWidth={false}
515         loading={false}
516         name="issues.facet.createdAt.last_week"
517         onClick={[Function]}
518         tooltip="issues.facet.createdAt.last_week"
519         value="1w"
520       />
521       <FacetItem
522         active={false}
523         halfWidth={false}
524         loading={false}
525         name="issues.facet.createdAt.last_month"
526         onClick={[Function]}
527         tooltip="issues.facet.createdAt.last_month"
528         value="1m"
529       />
530       <FacetItem
531         active={false}
532         halfWidth={false}
533         loading={false}
534         name="issues.facet.createdAt.last_year"
535         onClick={[Function]}
536         tooltip="issues.facet.createdAt.last_year"
537         value="1y"
538       />
539     </div>
540   </div>
541 </FacetBox>
542 `;