Skip to content

Commit

Permalink
Fix tests in link_to_logs.test.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry350 committed Oct 31, 2022
1 parent f948012 commit 8867aef
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { createStubDataView } from '@kbn/data-views-plugin/common/stubs';
import { defaultLogViewsStaticConfig } from './defaults';
import { ResolvedLogView, resolveLogView } from './resolved_log_view';
import { LogViewAttributes } from './types';
import { DataView } from '@kbn/data-views-plugin/common';
import { DataView, DataViewSpec } from '@kbn/data-views-plugin/common';

const dataViewMock = {
id: 'log-view-data-view-mock',
Expand Down Expand Up @@ -59,6 +59,10 @@ export const createResolvedLogViewMockFromAttributes = (logViewAttributes: LogVi
{
get: async () => createStubDataView({ spec: {} }),
getFieldsForWildcard: async () => [],
create: async (spec: DataViewSpec) =>
createStubDataView({
spec,
}),
} as unknown as DataViewsContract,
defaultLogViewsStaticConfig
);

0 comments on commit 8867aef

Please sign in to comment.