Skip to content

Commit 113c111

Browse files
Replace expect from chai with @kbn/expect, remove unnecessary type
1 parent dc85566 commit 113c111

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/plugins/vis_type_timeseries/public/application/components/add_delete_buttons.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
*/
1919

2020
import React from 'react';
21-
// @ts-ignore
22-
import { expect } from 'chai';
21+
import expect from '@kbn/expect';
2322
import { shallowWithIntl } from 'test_utils/enzyme_helpers';
2423
import sinon from 'sinon';
2524
import { AddDeleteButtons } from './add_delete_buttons';

src/plugins/vis_type_timeseries/public/application/components/aggs/agg_select.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,7 @@ export function AggSelect(props: AggSelectUiProps) {
250250
return value === option.value && isMetricEnabled(option.value, uiRestrictions);
251251
});
252252

253-
let enablePipelines = siblings.some(
254-
(s: { id: string; type: string }) => !!metricAggs.find((m) => m.value === s.type)
255-
);
253+
let enablePipelines = siblings.some((s) => !!metricAggs.find((m) => m.value === s.type));
256254

257255
if (siblings.length <= 1) enablePipelines = false;
258256

0 commit comments

Comments
 (0)