@@ -130,12 +130,12 @@ describe('DateTimeInput', () => {
130
130
const customInputs = component . find ( 'input[type="number"]' ) ;
131
131
132
132
expect ( nativeInput . prop ( 'value' ) ) . toBe ( '2017-09-30T22:17:00' ) ;
133
- expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( 9 ) ;
134
- expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( 30 ) ;
135
- expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( 2017 ) ;
136
- expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( 10 ) ;
137
- expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( 17 ) ;
138
- expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( 0 ) ;
133
+ expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( '9' ) ;
134
+ expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( '30' ) ;
135
+ expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( ' 2017' ) ;
136
+ expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( '10' ) ;
137
+ expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( '17' ) ;
138
+ expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( '0' ) ;
139
139
} ) ;
140
140
141
141
it ( 'shows a given date in all inputs correctly given array of Date objects (12-hour format)' , ( ) => {
@@ -153,12 +153,12 @@ describe('DateTimeInput', () => {
153
153
const customInputs = component . find ( 'input[type="number"]' ) ;
154
154
155
155
expect ( nativeInput . prop ( 'value' ) ) . toBe ( '2017-09-30T22:17:00' ) ;
156
- expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( 9 ) ;
157
- expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( 30 ) ;
158
- expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( 2017 ) ;
159
- expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( 10 ) ;
160
- expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( 17 ) ;
161
- expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( 0 ) ;
156
+ expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( '9' ) ;
157
+ expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( '30' ) ;
158
+ expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( ' 2017' ) ;
159
+ expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( '10' ) ;
160
+ expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( '17' ) ;
161
+ expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( '0' ) ;
162
162
} ) ;
163
163
164
164
it ( 'shows a given date in all inputs correctly given ISO string (12-hour format)' , ( ) => {
@@ -176,12 +176,12 @@ describe('DateTimeInput', () => {
176
176
const customInputs = component . find ( 'input[type="number"]' ) ;
177
177
178
178
expect ( nativeInput . prop ( 'value' ) ) . toBe ( '2017-09-30T22:17:00' ) ;
179
- expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( 9 ) ;
180
- expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( 30 ) ;
181
- expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( 2017 ) ;
182
- expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( 10 ) ;
183
- expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( 17 ) ;
184
- expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( 0 ) ;
179
+ expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( '9' ) ;
180
+ expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( '30' ) ;
181
+ expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( ' 2017' ) ;
182
+ expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( '10' ) ;
183
+ expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( '17' ) ;
184
+ expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( '0' ) ;
185
185
} ) ;
186
186
187
187
itIfFullICU ( 'shows a given date in all inputs correctly given Date (24-hour format)' , ( ) => {
@@ -200,12 +200,12 @@ describe('DateTimeInput', () => {
200
200
const customInputs = component . find ( 'input[type="number"]' ) ;
201
201
202
202
expect ( nativeInput . prop ( 'value' ) ) . toBe ( '2017-09-30T22:17:00' ) ;
203
- expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( 2017 ) ;
204
- expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( 9 ) ;
205
- expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( 30 ) ;
206
- expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( 22 ) ;
207
- expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( 17 ) ;
208
- expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( 0 ) ;
203
+ expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( ' 2017' ) ;
204
+ expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( '9' ) ;
205
+ expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( '30' ) ;
206
+ expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( '22' ) ;
207
+ expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( '17' ) ;
208
+ expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( '0' ) ;
209
209
} ) ;
210
210
211
211
itIfFullICU ( 'shows a given date in all inputs correctly given array of Date objects (24-hour format)' , ( ) => {
@@ -224,12 +224,12 @@ describe('DateTimeInput', () => {
224
224
const customInputs = component . find ( 'input[type="number"]' ) ;
225
225
226
226
expect ( nativeInput . prop ( 'value' ) ) . toBe ( '2017-09-30T22:17:00' ) ;
227
- expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( 2017 ) ;
228
- expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( 9 ) ;
229
- expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( 30 ) ;
230
- expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( 22 ) ;
231
- expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( 17 ) ;
232
- expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( 0 ) ;
227
+ expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( ' 2017' ) ;
228
+ expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( '9' ) ;
229
+ expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( '30' ) ;
230
+ expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( '22' ) ;
231
+ expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( '17' ) ;
232
+ expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( '0' ) ;
233
233
} ) ;
234
234
235
235
itIfFullICU ( 'shows a given date in all inputs correctly given ISO string (24-hour format)' , ( ) => {
@@ -248,12 +248,12 @@ describe('DateTimeInput', () => {
248
248
const customInputs = component . find ( 'input[type="number"]' ) ;
249
249
250
250
expect ( nativeInput . prop ( 'value' ) ) . toBe ( '2017-09-30T22:17:00' ) ;
251
- expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( 2017 ) ;
252
- expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( 9 ) ;
253
- expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( 30 ) ;
254
- expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( 22 ) ;
255
- expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( 17 ) ;
256
- expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( 0 ) ;
251
+ expect ( customInputs . at ( 0 ) . prop ( 'value' ) ) . toBe ( ' 2017' ) ;
252
+ expect ( customInputs . at ( 1 ) . prop ( 'value' ) ) . toBe ( '9' ) ;
253
+ expect ( customInputs . at ( 2 ) . prop ( 'value' ) ) . toBe ( '30' ) ;
254
+ expect ( customInputs . at ( 3 ) . prop ( 'value' ) ) . toBe ( '22' ) ;
255
+ expect ( customInputs . at ( 4 ) . prop ( 'value' ) ) . toBe ( '17' ) ;
256
+ expect ( customInputs . at ( 5 ) . prop ( 'value' ) ) . toBe ( '0' ) ;
257
257
} ) ;
258
258
259
259
it ( 'shows empty value in all inputs correctly given null' , ( ) => {
0 commit comments