Skip to content

Commit 7684cf3

Browse files
committed
test: fix input data of AgGrid utils test to have input date as strings
1 parent 41102c2 commit 7684cf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FileUtils/__test__/CustomersData.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const CUSTOMERS_COLS = [
7373
{
7474
headerName: 'identity',
7575
children: [
76-
{ field: 'birthday', type: ['date'], minValue: new Date('1900-01-01'), maxValue: new Date('2030-01-01') },
76+
{ field: 'birthday', type: ['date'], minValue: '01/01/1900', maxValue: '01/01/2030' },
7777
{ field: 'height', type: ['number'], minValue: 0, maxValue: 2.5 },
7878
],
7979
},
@@ -88,7 +88,7 @@ export const CUSTOMERS_COLS_DEPRECATED = [
8888
type: ['enum'],
8989
cellEditorParams: { enumValues: ['AppleJuice', 'Beer', 'OrangeJuice', 'Wine'] },
9090
},
91-
{ field: 'birthday', type: ['date'], minValue: new Date('1900-01-01'), maxValue: new Date('2030-01-01') },
91+
{ field: 'birthday', type: ['date'], minValue: '01/01/1900', maxValue: '01/01/2030' },
9292
{ field: 'height', type: ['number'], minValue: 0, maxValue: 2.5 },
9393
];
9494

0 commit comments

Comments
 (0)