mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Fix DataTableProps['data'] for resultType string
Signed-off-by: Kevin Mingtarja <kevin.mingtarja@gmail.com>
This commit is contained in:
parent
ea97086484
commit
c126c21baa
|
@ -338,7 +338,7 @@ describe('DataTable', () => {
|
|||
const dataTableProps: DataTableProps = {
|
||||
data: {
|
||||
resultType: 'string',
|
||||
result: 'string',
|
||||
result: [1572098246.599, 'test'],
|
||||
},
|
||||
useLocalTime: false,
|
||||
};
|
||||
|
@ -346,7 +346,7 @@ describe('DataTable', () => {
|
|||
it('renders a string row', () => {
|
||||
const table = dataTable.find(Table);
|
||||
const rows = table.find('tr');
|
||||
expect(rows.text()).toEqual('stringt');
|
||||
expect(rows.text()).toEqual('stringtest');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -24,7 +24,7 @@ export interface DataTableProps {
|
|||
}
|
||||
| {
|
||||
resultType: 'string';
|
||||
result: string;
|
||||
result: SampleValue;
|
||||
};
|
||||
useLocalTime: boolean;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue