Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Feb 17, 2020
1 parent 7abddc4 commit 555e19e
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,23 @@ jest.mock('./agg_select', () => ({
jest.mock('./agg_param', () => ({
DefaultEditorAggParam: () => null,
}));
jest.mock('../../../../../plugins/kibana_react/public', () => ({
useKibana: () => ({
services: {
dataShim: {
search: {
aggs: {
types: {},
aggTypeFieldFilters: {
filter: () => [],
},
},
},
},
},
}),
withKibana: (x: any) => x,
}));

describe('DefaultEditorAggParams component', () => {
let setAggParamValue: jest.Mock;
Expand Down

0 comments on commit 555e19e

Please sign in to comment.