Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ppisljar committed Mar 23, 2021
1 parent 7bbbe60 commit 57b3d71
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,22 @@ describe('interpreter/functions#filtersToAst', () => {
expect(actual[0].functions[0]).toHaveProperty('name', 'kibanaFilter');
expect(actual[0].functions[0].arguments).toMatchInlineSnapshot(`
Object {
"negate": Array [
false,
],
"query": Array [
"{\\"test\\":\\"something\\"}",
"{\\"query\\":{\\"test\\":\\"something\\"}}",
],
}
`);
expect(actual[1].functions[0]).toHaveProperty('name', 'kibanaFilter');
expect(actual[1].functions[0].arguments).toMatchInlineSnapshot(`
Object {
"negate": Array [
true,
],
"query": Array [
"{\\"test\\":\\"something\\"}",
"{\\"query\\":{\\"test\\":\\"something\\"}}",
],
}
`);
Expand Down
7 changes: 2 additions & 5 deletions src/plugins/data/common/search/expressions/kibana_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@

import { uniqBy } from 'lodash';
import { i18n } from '@kbn/i18n';
import {
ExpressionFunctionDefinition,
ExecutionContext,
unboxExpressionValue,
} from 'src/plugins/expressions/common';
import { ExpressionFunctionDefinition, ExecutionContext } from 'src/plugins/expressions/common';
import { Adapters } from 'src/plugins/inspector/common';
import { unboxExpressionValue } from '../../../../expressions/common';
import { Query, uniqFilters } from '../../query';
import { ExecutionContextSearch, KibanaContext, KibanaFilter } from './kibana_context_type';
import { KibanaQueryOutput } from './kibana_context_type';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ describe('interpreter/functions#kibanaFilter', () => {
"disabled": false,
"negate": false,
},
"query": Object {
"name": "test",
},
"name": "test",
"type": "kibana_filter",
}
`);
Expand Down

0 comments on commit 57b3d71

Please sign in to comment.