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