File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
fields/interceptors/translate-range-date/src/__tests__ Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import React from 'react';
3
3
import { mount } from 'enzyme' ;
4
4
5
5
// Internal
6
- import Form from '..' ;
6
+ import ReactForm from '..' ;
7
+
8
+ const Form : any = ReactForm ;
7
9
8
10
describe ( 'Form' , ( ) => {
9
11
it ( 'Mount the form with basic fields' , ( ) => {
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ import translateRangeDate from '..';
4
4
describe ( 'translateRangeDate' , ( ) => {
5
5
it ( 'returns formatted date with original value' , ( ) => {
6
6
const data = {
7
- startDate : '10-10-2010 ' ,
8
- endDate : '10-10-2020 '
7
+ startDate : '05 October 2011 14:48 UTC ' ,
8
+ endDate : '06 October 2011 14:48 UTC '
9
9
} ;
10
10
const expected = {
11
11
'formData' : {
12
- 'endDate' : '2020 -10-09T22:00 :00.000Z' ,
13
- 'startDate' : '2010 -10-09T22:00 :00.000Z' ,
12
+ 'endDate' : '2011 -10-06T14:48 :00.000Z' ,
13
+ 'startDate' : '2011 -10-05T14:48 :00.000Z' ,
14
14
} ,
15
- 'uiData' : '10/10/2010 - 10/10/2020 ' ,
15
+ 'uiData' : '10/5/2011 - 10/6/2011 ' ,
16
16
} ;
17
17
const actual = translateRangeDate ( {
18
18
data,
You can’t perform that action at this time.
0 commit comments