Skip to content

Commit

Permalink
fixed lens test
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Oct 6, 2019
1 parent d7e3cd4 commit 0d983f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/legacy/plugins/lens/public/app_plugin/app.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ describe('Lens App', () => {
await waitForPromises();

expect(args.docStorage.load).toHaveBeenCalledWith('1234');
expect(args.data.indexPatterns.indexPatterns.get).toHaveBeenCalledWith('1');
expect(args.dataShim.indexPatterns.indexPatterns.get).toHaveBeenCalledWith('1');
expect(TopNavMenu).toHaveBeenCalledWith(
expect.objectContaining({
query: 'fake query',
Expand Down Expand Up @@ -498,7 +498,7 @@ describe('Lens App', () => {

const instance = mount(<App {...args} />);

args.data.filter.filterManager.setFilters([
args.dataShim.filter.filterManager.setFilters([
buildExistsFilter({ name: 'myfield' }, { id: 'index1' }),
]);

Expand Down Expand Up @@ -629,7 +629,7 @@ describe('Lens App', () => {
query: { query: 'new', language: 'lucene' },
});

args.data.filter.filterManager.setFilters([
args.dataShim.filter.filterManager.setFilters([
buildExistsFilter({ name: 'myfield' }, { id: 'index1' }),
]);
instance.update();
Expand Down

0 comments on commit 0d983f5

Please sign in to comment.