@@ -130,12 +130,12 @@ describe('DateTimeInput', () => {
130130 const customInputs = component . find ( 'input[type="number"]' ) ;
131131
132132 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' ) ;
139139 } ) ;
140140
141141 it ( 'shows a given date in all inputs correctly given array of Date objects (12-hour format)' , ( ) => {
@@ -153,12 +153,12 @@ describe('DateTimeInput', () => {
153153 const customInputs = component . find ( 'input[type="number"]' ) ;
154154
155155 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' ) ;
162162 } ) ;
163163
164164 it ( 'shows a given date in all inputs correctly given ISO string (12-hour format)' , ( ) => {
@@ -176,12 +176,12 @@ describe('DateTimeInput', () => {
176176 const customInputs = component . find ( 'input[type="number"]' ) ;
177177
178178 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' ) ;
185185 } ) ;
186186
187187 itIfFullICU ( 'shows a given date in all inputs correctly given Date (24-hour format)' , ( ) => {
@@ -200,12 +200,12 @@ describe('DateTimeInput', () => {
200200 const customInputs = component . find ( 'input[type="number"]' ) ;
201201
202202 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' ) ;
209209 } ) ;
210210
211211 itIfFullICU ( 'shows a given date in all inputs correctly given array of Date objects (24-hour format)' , ( ) => {
@@ -224,12 +224,12 @@ describe('DateTimeInput', () => {
224224 const customInputs = component . find ( 'input[type="number"]' ) ;
225225
226226 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' ) ;
233233 } ) ;
234234
235235 itIfFullICU ( 'shows a given date in all inputs correctly given ISO string (24-hour format)' , ( ) => {
@@ -248,12 +248,12 @@ describe('DateTimeInput', () => {
248248 const customInputs = component . find ( 'input[type="number"]' ) ;
249249
250250 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' ) ;
257257 } ) ;
258258
259259 it ( 'shows empty value in all inputs correctly given null' , ( ) => {
0 commit comments