Skip to content

Commit

Permalink
Fix tests and TS.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeelmers committed Aug 13, 2020
1 parent 5d7e7fc commit 5f5e4d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions src/plugins/data/public/search/search_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,17 @@ describe('Search service', () => {
registerFunction: jest.fn(),
} as unknown) as SearchServiceSetupDependencies);
expect(setup).toHaveProperty('aggs');
expect(setup).toHaveProperty('usageCollector');
expect(setup).toHaveProperty('__enhance');
});
});

describe('start()', () => {
it('exposes proper contract', async () => {
const start = searchService.start(mockCoreStart, {
indexPatterns: {},
} as any);
expect(start).toHaveProperty('search');
});
});

describe('start()', () => {
it('exposes proper contract', async () => {
const start = searchService.start(mockCoreStart, {
indexPatterns: {},
} as any);
expect(start).toHaveProperty('aggs');
expect(start).toHaveProperty('setInterceptor');
expect(start).toHaveProperty('search');
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/data/public/search/search_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/

import { Plugin, CoreSetup, CoreStart, PackageInfo, IUiSettingsClient } from 'src/core/public';
import { Plugin, CoreSetup, CoreStart, PackageInfo } from 'src/core/public';
import { ISearchSetup, ISearchStart, SearchEnhancements } from './types';

import { createSearchSource, SearchSource, SearchSourceDependencies } from './search_source';
Expand Down

0 comments on commit 5f5e4d1

Please sign in to comment.