Skip to content

Commit

Permalink
refact: rollback query_string_input.test file
Browse files Browse the repository at this point in the history
  • Loading branch information
nlatipov committed May 18, 2022
1 parent ee6de6c commit 316d960
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Side Public License, v 1.
*/

import { stubDataView } from '@kbn/data-views-plugin/common/data_view.stub';
import { stubIndexPattern } from '@kbn/data-plugin/public/stubs';

export const mockPersistedLog = {
add: jest.fn(),
Expand All @@ -17,7 +17,9 @@ export const mockPersistedLogFactory = jest.fn<jest.Mocked<typeof mockPersistedL
return mockPersistedLog;
});

export const mockFetchIndexPatterns = jest.fn().mockReturnValue(Promise.resolve([stubDataView]));
export const mockFetchIndexPatterns = jest
.fn()
.mockReturnValue(Promise.resolve([stubIndexPattern]));

jest.mock('@kbn/data-plugin/public/query/persisted_log', () => ({
PersistedLog: mockPersistedLogFactory,
Expand Down

0 comments on commit 316d960

Please sign in to comment.