Skip to content

Commit 1e8ef4b

Browse files
committed
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js --ref HEAD~1..HEAD --fix'
1 parent 3e39342 commit 1e8ef4b

2 files changed

Lines changed: 4 additions & 19 deletions

File tree

src/plugins/vis_types/timeseries/public/convert_to_lens/lib/convert/parent_pipeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import {
3333
getFormulaFromMetric,
3434
SupportedMetric,
3535
SUPPORTED_METRICS,
36-
getPipelineSeriesFormula
36+
getPipelineSeriesFormula,
3737
} from '../metrics';
3838
import { createColumn, getFormat } from './column';
3939
import { createFormulaColumn } from './formula';

src/plugins/vis_types/timeseries/public/convert_to_lens/lib/metrics/pipeline_formula.test.ts

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,7 @@ describe('getParentPipelineSeriesFormula', () => {
124124
>([
125125
[
126126
'null if metric is not supported',
127-
[
128-
metricsWithNotSupportedSubFunction[0],
129-
metrics,
130-
metrics[0],
131-
{},
132-
],
127+
[metricsWithNotSupportedSubFunction[0], metrics, metrics[0], {}],
133128
null,
134129
],
135130
[
@@ -144,22 +139,12 @@ describe('getParentPipelineSeriesFormula', () => {
144139
],
145140
[
146141
'correct formula if metric is supported',
147-
[
148-
metrics[1],
149-
metrics,
150-
metrics[0],
151-
{},
152-
],
142+
[metrics[1], metrics, metrics[0], {}],
153143
'moving_average(average(test-field-1), window=5)',
154144
],
155145
[
156146
'correct formula if metric have additional sub function',
157-
[
158-
metricsWithSubFunction[2],
159-
metricsWithSubFunction,
160-
metricsWithSubFunction[1],
161-
{},
162-
],
147+
[metricsWithSubFunction[2], metricsWithSubFunction, metricsWithSubFunction[1], {}],
163148
'moving_average(differences(average(test-field-1)), window=5)',
164149
],
165150
[

0 commit comments

Comments
 (0)