React: Clean up formatting

Signed-off-by: beorn7 <beorn@grafana.com>
This commit is contained in:
beorn7 2022-05-04 13:31:34 +02:00
parent 23675cad16
commit 9cfc78814e
2 changed files with 18 additions and 19 deletions

View file

@ -91,14 +91,14 @@ describe('DataTable', () => {
histogram: [ histogram: [
1572098246.599, 1572098246.599,
{ {
"count": "10", count: '10',
"sum": "3.3", sum: '3.3',
"buckets": [ buckets: [
[ 1, "-1", "-0.5", "2"], [1, '-1', '-0.5', '2'],
[ 3, "-0.5", "0.5", "3"], [3, '-0.5', '0.5', '3'],
[ 0, "0.5", "1", "5"], [0, '0.5', '1', '5'],
] ],
} },
], ],
}, },
{ {
@ -110,13 +110,13 @@ describe('DataTable', () => {
histogram: [ histogram: [
1572098247.599, 1572098247.599,
{ {
"count": "5", count: '5',
"sum": "1.11", sum: '1.11',
"buckets": [ buckets: [
[ 0, "0.5", "1", "2"], [0, '0.5', '1', '2'],
[ 0, "1", "2", "3"], [0, '1', '2', '3'],
] ],
} },
], ],
}, },
{ {
@ -125,7 +125,6 @@ describe('DataTable', () => {
label1: 'value_1', label1: 'value_1',
labeln: 'value_n', labeln: 'value_n',
}, },
}, },
], ],
}, },

View file

@ -5,9 +5,9 @@ export interface Metric {
} }
export interface Histogram { export interface Histogram {
count: string; count: string;
sum: string; sum: string;
buckets: [number, string, string, string][]; buckets: [number, string, string, string][];
} }
export interface Exemplar { export interface Exemplar {