Chore: fixes test data in processDataFrame.test.ts (#23058)

pull/23009/head^2
Hugo Häggmark 5 years ago committed by GitHub
parent 65d97edb3b
commit 6f3ca2616f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      packages/grafana-data/src/dataframe/processDataFrame.test.ts

@ -7,7 +7,7 @@ import {
toDataFrame,
toLegacyResponseData,
} from './processDataFrame';
import { DataFrameDTO, FieldType, QueryResultMeta, TableData, TimeSeries } from '../types/index';
import { DataFrameDTO, FieldType, TableData, TimeSeries } from '../types/index';
import { dateTime } from '../datetime/moment_wrapper';
import { MutableDataFrame } from './MutableDataFrame';
@ -227,9 +227,11 @@ describe('SerisData backwards compatibility', () => {
it('can convert DataFrame to TableData to series and back again', () => {
const json: DataFrameDTO = {
refId: 'Z',
meta: ({
something: 8,
} as unknown) as QueryResultMeta,
meta: {
custom: {
something: 8,
},
},
fields: [
{ name: 'T', type: FieldType.time, values: [1, 2, 3] },
{ name: 'N', type: FieldType.number, config: { filterable: true }, values: [100, 200, 300] },

Loading…
Cancel
Save