From 6f3ca2616f6598765d1a133a20d7e12507a8fd46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Wed, 25 Mar 2020 13:18:41 +0100 Subject: [PATCH] Chore: fixes test data in processDataFrame.test.ts (#23058) --- .../src/dataframe/processDataFrame.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/grafana-data/src/dataframe/processDataFrame.test.ts b/packages/grafana-data/src/dataframe/processDataFrame.test.ts index 0e7cf247108..232c3a41eb3 100644 --- a/packages/grafana-data/src/dataframe/processDataFrame.test.ts +++ b/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] },