mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: fixes test data in processDataFrame.test.ts (#23058)
This commit is contained in:
parent
65d97edb3b
commit
6f3ca2616f
@ -7,7 +7,7 @@ import {
|
|||||||
toDataFrame,
|
toDataFrame,
|
||||||
toLegacyResponseData,
|
toLegacyResponseData,
|
||||||
} from './processDataFrame';
|
} 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 { dateTime } from '../datetime/moment_wrapper';
|
||||||
import { MutableDataFrame } from './MutableDataFrame';
|
import { MutableDataFrame } from './MutableDataFrame';
|
||||||
|
|
||||||
@ -227,9 +227,11 @@ describe('SerisData backwards compatibility', () => {
|
|||||||
it('can convert DataFrame to TableData to series and back again', () => {
|
it('can convert DataFrame to TableData to series and back again', () => {
|
||||||
const json: DataFrameDTO = {
|
const json: DataFrameDTO = {
|
||||||
refId: 'Z',
|
refId: 'Z',
|
||||||
meta: ({
|
meta: {
|
||||||
something: 8,
|
custom: {
|
||||||
} as unknown) as QueryResultMeta,
|
something: 8,
|
||||||
|
},
|
||||||
|
},
|
||||||
fields: [
|
fields: [
|
||||||
{ name: 'T', type: FieldType.time, values: [1, 2, 3] },
|
{ name: 'T', type: FieldType.time, values: [1, 2, 3] },
|
||||||
{ name: 'N', type: FieldType.number, config: { filterable: true }, values: [100, 200, 300] },
|
{ name: 'N', type: FieldType.number, config: { filterable: true }, values: [100, 200, 300] },
|
||||||
|
Loading…
Reference in New Issue
Block a user