Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasolson committed Jun 9, 2020
1 parent 1452ed5 commit c7d6b61
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/plugins/data/server/search/search_service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,13 @@ import { SearchService } from './search_service';
import { CoreSetup } from '../../../../core/server';
import { DataPluginStart } from '../plugin';

const mockSearchApi = { search: jest.fn() };
jest.mock('./create_api', () => ({
createApi: () => mockSearchApi,
}));

describe('Search service', () => {
let plugin: SearchService;
let mockCoreSetup: MockedKeys<CoreSetup<object, DataPluginStart>>;

beforeEach(() => {
plugin = new SearchService(coreMock.createPluginInitializerContext({}));
mockCoreSetup = coreMock.createSetup();
mockSearchApi.search.mockClear();
});

describe('setup()', () => {
Expand Down

0 comments on commit c7d6b61

Please sign in to comment.