Fix DataTableProps['data'] for resultType string

Signed-off-by: Kevin Mingtarja <kevin.mingtarja@gmail.com>
pull/13371/head
Kevin Mingtarja 2024-01-04 01:51:56 +07:00
parent ea97086484
commit c126c21baa
2 changed files with 3 additions and 3 deletions

View File

@ -338,7 +338,7 @@ describe('DataTable', () => {
const dataTableProps: DataTableProps = { const dataTableProps: DataTableProps = {
data: { data: {
resultType: 'string', resultType: 'string',
result: 'string', result: [1572098246.599, 'test'],
}, },
useLocalTime: false, useLocalTime: false,
}; };
@ -346,7 +346,7 @@ describe('DataTable', () => {
it('renders a string row', () => { it('renders a string row', () => {
const table = dataTable.find(Table); const table = dataTable.find(Table);
const rows = table.find('tr'); const rows = table.find('tr');
expect(rows.text()).toEqual('stringt'); expect(rows.text()).toEqual('stringtest');
}); });
}); });
}); });

View File

@ -24,7 +24,7 @@ export interface DataTableProps {
} }
| { | {
resultType: 'string'; resultType: 'string';
result: string; result: SampleValue;
}; };
useLocalTime: boolean; useLocalTime: boolean;
} }