]> source.dussan.org Git - sonarqube.git/blob
e073a3a2358b3e90c5f9962188e453157d59688d
[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         disabled={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         disabled={false}
49         halfWidth={false}
50         loading={false}
51         name="issues.new_code"
52         onClick={[Function]}
53         tooltip="issues.new_code_period"
54         value=""
55       />
56     </div>
57   </div>
58 </FacetBox>
59 `;
60
61 exports[`should render correctly for createdInLast week 1`] = `
62 <FacetBox
63   property="createdAt"
64 >
65   <FacetHeader
66     fetching={false}
67     name="issues.facet.createdAt"
68     onClear={[Function]}
69     onClick={[Function]}
70     open={true}
71     values={
72       Array [
73         "issues.facet.createdAt.last_week",
74       ]
75     }
76   />
77   <div>
78     <div
79       className="search-navigator-date-facet-selection"
80     >
81       <DateRangeInput
82         onChange={[Function]}
83         value={
84           Object {
85             "from": undefined,
86             "to": undefined,
87           }
88         }
89       />
90     </div>
91     <div
92       className="spacer-top issues-predefined-periods"
93     >
94       <FacetItem
95         active={false}
96         disabled={false}
97         halfWidth={false}
98         loading={false}
99         name="issues.facet.createdAt.all"
100         onClick={[Function]}
101         tooltip="issues.facet.createdAt.all"
102         value=""
103       />
104       <FacetItem
105         active={false}
106         disabled={false}
107         halfWidth={false}
108         loading={false}
109         name="issues.new_code"
110         onClick={[Function]}
111         tooltip="issues.new_code_period"
112         value=""
113       />
114     </div>
115   </div>
116 </FacetBox>
117 `;
118
119 exports[`should render correctly for createdInLast year 1`] = `
120 <FacetBox
121   property="createdAt"
122 >
123   <FacetHeader
124     fetching={false}
125     name="issues.facet.createdAt"
126     onClear={[Function]}
127     onClick={[Function]}
128     open={true}
129     values={
130       Array [
131         "issues.facet.createdAt.last_year",
132       ]
133     }
134   />
135   <div>
136     <div
137       className="search-navigator-date-facet-selection"
138     >
139       <DateRangeInput
140         onChange={[Function]}
141         value={
142           Object {
143             "from": undefined,
144             "to": undefined,
145           }
146         }
147       />
148     </div>
149     <div
150       className="spacer-top issues-predefined-periods"
151     >
152       <FacetItem
153         active={false}
154         disabled={false}
155         halfWidth={false}
156         loading={false}
157         name="issues.facet.createdAt.all"
158         onClick={[Function]}
159         tooltip="issues.facet.createdAt.all"
160         value=""
161       />
162       <FacetItem
163         active={false}
164         disabled={false}
165         halfWidth={false}
166         loading={false}
167         name="issues.new_code"
168         onClick={[Function]}
169         tooltip="issues.new_code_period"
170         value=""
171       />
172     </div>
173   </div>
174 </FacetBox>
175 `;
176
177 exports[`should render correctly: clear 1`] = `
178 <FacetBox
179   property="createdAt"
180 >
181   <FacetHeader
182     fetching={false}
183     name="issues.facet.createdAt"
184     onClear={[Function]}
185     onClick={[Function]}
186     open={true}
187     values={Array []}
188   />
189   <div>
190     <div
191       className="search-navigator-date-facet-selection"
192     >
193       <DateRangeInput
194         onChange={[Function]}
195         value={
196           Object {
197             "from": undefined,
198             "to": undefined,
199           }
200         }
201       />
202     </div>
203     <div
204       className="spacer-top issues-predefined-periods"
205     >
206       <FacetItem
207         active={true}
208         disabled={false}
209         halfWidth={false}
210         loading={false}
211         name="issues.facet.createdAt.all"
212         onClick={[Function]}
213         tooltip="issues.facet.createdAt.all"
214         value=""
215       />
216       <FacetItem
217         active={false}
218         disabled={false}
219         halfWidth={false}
220         loading={false}
221         name="issues.facet.createdAt.last_week"
222         onClick={[Function]}
223         tooltip="issues.facet.createdAt.last_week"
224         value="1w"
225       />
226       <FacetItem
227         active={false}
228         disabled={false}
229         halfWidth={false}
230         loading={false}
231         name="issues.facet.createdAt.last_month"
232         onClick={[Function]}
233         tooltip="issues.facet.createdAt.last_month"
234         value="1m"
235       />
236       <FacetItem
237         active={false}
238         disabled={false}
239         halfWidth={false}
240         loading={false}
241         name="issues.facet.createdAt.last_year"
242         onClick={[Function]}
243         tooltip="issues.facet.createdAt.last_year"
244         value="1y"
245       />
246     </div>
247   </div>
248 </FacetBox>
249 `;
250
251 exports[`should render correctly: closed 1`] = `
252 <FacetBox
253   property="createdAt"
254 >
255   <FacetHeader
256     fetching={false}
257     name="issues.facet.createdAt"
258     onClear={[Function]}
259     onClick={[Function]}
260     open={false}
261     values={Array []}
262   />
263 </FacetBox>
264 `;
265
266 exports[`should render correctly: created after 1`] = `
267 <FacetBox
268   property="createdAt"
269 >
270   <FacetHeader
271     fetching={false}
272     name="issues.facet.createdAt"
273     onClear={[Function]}
274     onClick={[Function]}
275     open={true}
276     values={
277       Array [
278         "formatted.Invalid Date",
279       ]
280     }
281   />
282   <div
283     className="search-navigator-facet-container"
284   >
285     <strong>
286       after
287        
288     </strong>
289     <DateTimeFormatter
290       date={Date { NaN }}
291     />
292   </div>
293 </FacetBox>
294 `;
295
296 exports[`should render correctly: created after timestamp 1`] = `
297 <FacetBox
298   property="createdAt"
299 >
300   <FacetHeader
301     fetching={false}
302     name="issues.facet.createdAt"
303     onClear={[Function]}
304     onClick={[Function]}
305     open={true}
306     values={
307       Array [
308         "formatted.Invalid Date",
309       ]
310     }
311   />
312   <div
313     className="search-navigator-facet-container"
314   >
315     <strong>
316       after
317        
318     </strong>
319     <DateTimeFormatter
320       date={Date { NaN }}
321     />
322   </div>
323 </FacetBox>
324 `;
325
326 exports[`should render correctly: created at 1`] = `
327 <FacetBox
328   property="createdAt"
329 >
330   <FacetHeader
331     fetching={false}
332     name="issues.facet.createdAt"
333     onClear={[Function]}
334     onClick={[Function]}
335     open={true}
336     values={
337       Array [
338         "formatted.2019.05.21T13:33:00Z",
339       ]
340     }
341   />
342   <div
343     className="search-navigator-facet-container"
344   >
345     <DateTimeFormatter
346       date="2019.05.21T13:33:00Z"
347     />
348     <br />
349     <span
350       className="note"
351     >
352       <DateFromNow
353         date="2019.05.21T13:33:00Z"
354       />
355     </span>
356   </div>
357 </FacetBox>
358 `;
359
360 exports[`should render correctly: project 1`] = `
361 <FacetBox
362   property="createdAt"
363 >
364   <FacetHeader
365     fetching={false}
366     name="issues.facet.createdAt"
367     onClear={[Function]}
368     onClick={[Function]}
369     open={true}
370     values={Array []}
371   />
372   <div>
373     <div
374       className="search-navigator-date-facet-selection"
375     >
376       <DateRangeInput
377         onChange={[Function]}
378         value={
379           Object {
380             "from": undefined,
381             "to": undefined,
382           }
383         }
384       />
385     </div>
386     <div
387       className="spacer-top issues-predefined-periods"
388     >
389       <FacetItem
390         active={true}
391         disabled={false}
392         halfWidth={false}
393         loading={false}
394         name="issues.facet.createdAt.all"
395         onClick={[Function]}
396         tooltip="issues.facet.createdAt.all"
397         value=""
398       />
399       <FacetItem
400         active={false}
401         disabled={false}
402         halfWidth={false}
403         loading={false}
404         name="issues.new_code"
405         onClick={[Function]}
406         tooltip="issues.new_code_period"
407         value=""
408       />
409     </div>
410   </div>
411 </FacetBox>
412 `;