Skip to content

Commit 6059d7d

Browse files
committed
fix: cloud build
1 parent a868a80 commit 6059d7d

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/__tests__/Form.spec.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ import React from 'react';
33
import { mount } from 'enzyme';
44

55
// Internal
6-
import Form from '..';
6+
import ReactForm from '..';
7+
8+
const Form: any = ReactForm;
79

810
describe('Form', () => {
911
it('Mount the form with basic fields', () => {

src/fields/interceptors/translate-range-date/src/__tests__/translate-range-date.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import translateRangeDate from '..';
44
describe('translateRangeDate', () => {
55
it('returns formatted date with original value', () => {
66
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'
99
};
1010
const expected = {
1111
'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',
1414
},
15-
'uiData': '10/10/2010 - 10/10/2020',
15+
'uiData': '10/5/2011 - 10/6/2011',
1616
};
1717
const actual = translateRangeDate({
1818
data,

0 commit comments

Comments
 (0)