Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
Browse files Browse the repository at this point in the history
…-ref HEAD~1..HEAD --fix'
  • Loading branch information
kibanamachine committed Sep 12, 2022
1 parent 3e39342 commit 1e8ef4b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import {
getFormulaFromMetric,
SupportedMetric,
SUPPORTED_METRICS,
getPipelineSeriesFormula
getPipelineSeriesFormula,
} from '../metrics';
import { createColumn, getFormat } from './column';
import { createFormulaColumn } from './formula';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,7 @@ describe('getParentPipelineSeriesFormula', () => {
>([
[
'null if metric is not supported',
[
metricsWithNotSupportedSubFunction[0],
metrics,
metrics[0],
{},
],
[metricsWithNotSupportedSubFunction[0], metrics, metrics[0], {}],
null,
],
[
Expand All @@ -144,22 +139,12 @@ describe('getParentPipelineSeriesFormula', () => {
],
[
'correct formula if metric is supported',
[
metrics[1],
metrics,
metrics[0],
{},
],
[metrics[1], metrics, metrics[0], {}],
'moving_average(average(test-field-1), window=5)',
],
[
'correct formula if metric have additional sub function',
[
metricsWithSubFunction[2],
metricsWithSubFunction,
metricsWithSubFunction[1],
{},
],
[metricsWithSubFunction[2], metricsWithSubFunction, metricsWithSubFunction[1], {}],
'moving_average(differences(average(test-field-1)), window=5)',
],
[
Expand Down

0 comments on commit 1e8ef4b

Please sign in to comment.