From 116484a9af614c11f4d29d8d5dc81cbfbc10a929 Mon Sep 17 00:00:00 2001 From: stephenLYZ <750188453@qq.com> Date: Wed, 20 Apr 2022 15:22:43 +0800 Subject: [PATCH] fix: test --- .../test/Timeseries/transformProps.test.ts | 84 +++++++++---------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-echarts/test/Timeseries/transformProps.test.ts b/superset-frontend/plugins/plugin-chart-echarts/test/Timeseries/transformProps.test.ts index 3fbe72e59ad12..172ce24204218 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/test/Timeseries/transformProps.test.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/test/Timeseries/transformProps.test.ts @@ -180,54 +180,54 @@ describe('EchartsTimeseries transformProps', () => { ...formData, annotationLayers: [event, interval, timeseries], }, - queriesData: [ - { - ...queriesData[0], - annotation_data: { - 'My Event': { - columns: [ - 'start_dttm', - 'end_dttm', - 'short_descr', - 'long_descr', - 'json_metadata', - ], - records: [ - { - start_dttm: 0, - end_dttm: 1000, - short_descr: '', - long_descr: '', - json_metadata: null, - }, - ], + annotationData: { + 'My Event': { + columns: [ + 'start_dttm', + 'end_dttm', + 'short_descr', + 'long_descr', + 'json_metadata', + ], + records: [ + { + start_dttm: 0, + end_dttm: 1000, + short_descr: '', + long_descr: '', + json_metadata: null, }, - 'My Interval': { - columns: ['start', 'end', 'title'], - records: [ - { - start: 2000, - end: 3000, - title: 'My Title', - }, - ], + ], + }, + 'My Interval': { + columns: ['start', 'end', 'title'], + records: [ + { + start: 2000, + end: 3000, + title: 'My Title', }, - 'My Timeseries': [ + ], + }, + 'My Timeseries': [ + { + key: 'My Line', + values: [ + { + x: 10000, + y: 11000, + }, { - key: 'My Line', - values: [ - { - x: 10000, - y: 11000, - }, - { - x: 20000, - y: 21000, - }, - ], + x: 20000, + y: 21000, }, ], }, + ], + }, + queriesData: [ + { + ...queriesData[0], }, ], });