Skip to content

Commit

Permalink
Replace expect from chai with @kbn/expect, remove unnecessary type
Browse files Browse the repository at this point in the history
  • Loading branch information
DianaDerevyankina committed Jun 16, 2020
1 parent dc85566 commit 113c111
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
*/

import React from 'react';
// @ts-ignore
import { expect } from 'chai';
import expect from '@kbn/expect';
import { shallowWithIntl } from 'test_utils/enzyme_helpers';
import sinon from 'sinon';
import { AddDeleteButtons } from './add_delete_buttons';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,7 @@ export function AggSelect(props: AggSelectUiProps) {
return value === option.value && isMetricEnabled(option.value, uiRestrictions);
});

let enablePipelines = siblings.some(
(s: { id: string; type: string }) => !!metricAggs.find((m) => m.value === s.type)
);
let enablePipelines = siblings.some((s) => !!metricAggs.find((m) => m.value === s.type));

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

Expand Down

0 comments on commit 113c111

Please sign in to comment.