From 40bd3ae3ef6ba7c9b27a6b53135e5228e0f28c72 Mon Sep 17 00:00:00 2001 From: Walter Rafelsberger Date: Thu, 23 Feb 2023 13:06:04 +0100 Subject: [PATCH] tweak assertions --- .../step_define/common/common.test.ts | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts b/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts index 4a9ebd3e2c6f3..bf6538c805aef 100644 --- a/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts +++ b/x-pack/plugins/transform/public/app/sections/create_transform/components/step_define/common/common.test.ts @@ -71,71 +71,71 @@ describe('Transform: Define Pivot Common', () => { aggOptionsData: { 'avg( the-f[i]e>ld )': { agg: 'avg', + field: ' the-f[i]e>ld ', aggName: 'the-field.avg', dropDownName: 'avg( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', }, 'cardinality( the-f[i]e>ld )': { agg: 'cardinality', + field: ' the-f[i]e>ld ', aggName: 'the-field.cardinality', dropDownName: 'cardinality( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', }, 'max( the-f[i]e>ld )': { agg: 'max', + field: ' the-f[i]e>ld ', aggName: 'the-field.max', dropDownName: 'max( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', }, 'min( the-f[i]e>ld )': { agg: 'min', + field: ' the-f[i]e>ld ', aggName: 'the-field.min', dropDownName: 'min( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', }, 'percentiles( the-f[i]e>ld )': { agg: 'percentiles', + field: ' the-f[i]e>ld ', aggName: 'the-field.percentiles', dropDownName: 'percentiles( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', isSubAggsSupported: false, isMultiField: false, aggConfig: { percents: '1,5,25,50,75,95,99' }, }, 'sum( the-f[i]e>ld )': { agg: 'sum', + field: ' the-f[i]e>ld ', aggName: 'the-field.sum', dropDownName: 'sum( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', }, 'value_count( the-f[i]e>ld )': { agg: 'value_count', + field: ' the-f[i]e>ld ', aggName: 'the-field.value_count', dropDownName: 'value_count( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', }, 'filter( the-f[i]e>ld )': { agg: 'filter', + field: ' the-f[i]e>ld ', aggName: 'the-field.filter', dropDownName: 'filter( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', isSubAggsSupported: true, aggConfig: {}, }, 'terms( the-f[i]e>ld )': { agg: 'terms', + field: ' the-f[i]e>ld ', aggName: 'the-field.terms', dropDownName: 'terms( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', isSubAggsSupported: false, isMultiField: false, aggConfig: { size: 10 }, }, 'top_metrics( the-f[i]e>ld )': { agg: 'top_metrics', + field: ' the-f[i]e>ld ', aggName: 'top_metrics', dropDownName: 'top_metrics( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', isSubAggsSupported: false, isMultiField: true, aggConfig: {}, @@ -166,29 +166,29 @@ describe('Transform: Define Pivot Common', () => { groupByOptionsData: { 'histogram( the-f[i]e>ld )': { agg: 'histogram', + field: ' the-f[i]e>ld ', aggName: 'the-field', dropDownName: 'histogram( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', interval: '10', }, 'terms( the-f[i]e>ld )': { agg: 'terms', + field: ' the-f[i]e>ld ', aggName: 'the-field', dropDownName: 'terms( the-f[i]e>ld )', - field: ' the-f[i]e>ld ', }, 'histogram(rt_bytes_bigger)': { agg: 'histogram', + field: 'rt_bytes_bigger', aggName: 'rt_bytes_bigger', dropDownName: 'histogram(rt_bytes_bigger)', - field: 'rt_bytes_bigger', interval: '10', }, 'terms(rt_bytes_bigger)': { agg: 'terms', + field: 'rt_bytes_bigger', aggName: 'rt_bytes_bigger', dropDownName: 'terms(rt_bytes_bigger)', - field: 'rt_bytes_bigger', }, }, aggOptions: [