Signed-off-by: machine424 <ayoubmrini424@gmail.com>
pull/13371/head
machine424 12 months ago
parent 69abd6d9f6
commit ea97086484
No known key found for this signature in database
GPG Key ID: A4B001A4FDEE017D

@ -0,0 +1,27 @@
import { isHeatmapData } from './GraphHeatmapHelpers';
describe('GraphHeatmapHelpers', () => {
it('isHeatmapData should return false for a vector', () => {
const data = {
resultType: 'vector',
result: [
{
metric: {
__name__: 'my_gauge',
job: 'target',
},
value: [1703091180.683, '6'],
},
],
};
expect(isHeatmapData(data)).toBe(false);
});
it('isHeatmapData should return false for scalar resultType', () => {
const data = {
resultType: 'scalar',
result: [1703091180.125, '1703091180.125'],
};
expect(isHeatmapData(data)).toBe(false);
});
});
Loading…
Cancel
Save