]> source.dussan.org Git - sonarqube.git/blob
19e4e6ab487dac1329a950b8e07c14f63e1c7ced
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render 1`] = `
4 <div
5   className="display-flex-end"
6 >
7   <div
8     className="display-flex-column"
9   >
10     <label
11       className="text-bold little-spacer-bottom"
12       htmlFor="date-from"
13     >
14       start_date
15     </label>
16     <DateInput
17       currentMonth={2018-02-05T00:00:00.000Z}
18       data-test="from"
19       highlightTo={2018-02-05T00:00:00.000Z}
20       id="date-from"
21       maxDate={2018-02-05T00:00:00.000Z}
22       onChange={[Function]}
23       placeholder="start_date"
24       value={2018-01-17T00:00:00.000Z}
25     />
26   </div>
27   <span
28     className="note little-spacer-left little-spacer-right little-spacer-bottom"
29   >
30     to_
31   </span>
32   <div
33     className="display-flex-column"
34   >
35     <label
36       className="text-bold little-spacer-bottom"
37       htmlFor="date-to"
38     >
39       end_date
40     </label>
41     <DateInput
42       currentMonth={2018-01-17T00:00:00.000Z}
43       data-test="to"
44       highlightFrom={2018-01-17T00:00:00.000Z}
45       id="date-to"
46       minDate={2018-01-17T00:00:00.000Z}
47       onChange={[Function]}
48       placeholder="end_date"
49       value={2018-02-05T00:00:00.000Z}
50     />
51   </div>
52 </div>
53 `;
54
55 exports[`should render: with min/max 1`] = `
56 <div
57   className="display-flex-end"
58 >
59   <div
60     className="display-flex-column"
61   >
62     <label
63       className="text-bold little-spacer-bottom"
64       htmlFor="date-from"
65     >
66       start_date
67     </label>
68     <DateInput
69       data-test="from"
70       id="date-from"
71       maxDate={2018-02-05T00:00:00.000Z}
72       minDate={2018-01-17T00:00:00.000Z}
73       onChange={[Function]}
74       placeholder="start_date"
75     />
76   </div>
77   <span
78     className="note little-spacer-left little-spacer-right little-spacer-bottom"
79   >
80     to_
81   </span>
82   <div
83     className="display-flex-column"
84   >
85     <label
86       className="text-bold little-spacer-bottom"
87       htmlFor="date-to"
88     >
89       end_date
90     </label>
91     <DateInput
92       data-test="to"
93       id="date-to"
94       maxDate={2018-02-05T00:00:00.000Z}
95       minDate={2018-01-17T00:00:00.000Z}
96       onChange={[Function]}
97       placeholder="end_date"
98     />
99   </div>
100 </div>
101 `;
102
103 exports[`should render: with min/max and value 1`] = `
104 <div
105   className="display-flex-end"
106 >
107   <div
108     className="display-flex-column"
109   >
110     <label
111       className="text-bold little-spacer-bottom"
112       htmlFor="date-from"
113     >
114       start_date
115     </label>
116     <DateInput
117       currentMonth={2018-02-05T00:00:00.000Z}
118       data-test="from"
119       highlightTo={2018-02-05T00:00:00.000Z}
120       id="date-from"
121       maxDate={2018-02-05T00:00:00.000Z}
122       minDate={2018-01-17T00:00:00.000Z}
123       onChange={[Function]}
124       placeholder="start_date"
125       value={2018-01-17T00:00:00.000Z}
126     />
127   </div>
128   <span
129     className="note little-spacer-left little-spacer-right little-spacer-bottom"
130   >
131     to_
132   </span>
133   <div
134     className="display-flex-column"
135   >
136     <label
137       className="text-bold little-spacer-bottom"
138       htmlFor="date-to"
139     >
140       end_date
141     </label>
142     <DateInput
143       currentMonth={2018-01-17T00:00:00.000Z}
144       data-test="to"
145       highlightFrom={2018-01-17T00:00:00.000Z}
146       id="date-to"
147       maxDate={2018-02-05T00:00:00.000Z}
148       minDate={2018-01-17T00:00:00.000Z}
149       onChange={[Function]}
150       placeholder="end_date"
151       value={2018-02-05T00:00:00.000Z}
152     />
153   </div>
154 </div>
155 `;