Skip to content

Commit

Permalink
fix lens mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Feb 14, 2020
1 parent 9d7c8c4 commit 14c8c92
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { embeddablePluginMock } from '../../../../../../src/plugins/embeddable/p
import { expressionsPluginMock } from '../../../../../../src/plugins/expressions/public/mocks';
import { DatasourcePublicAPI, FramePublicAPI, Datasource, Visualization } from '../types';
import { EditorFrameSetupPlugins, EditorFrameStartPlugins } from './service';
import { dataPluginMock } from '../../../../../../src/plugins/data/public/mocks';

export function createMockVisualization(): jest.Mocked<Visualization> {
return {
Expand Down Expand Up @@ -103,19 +104,15 @@ export function createExpressionRendererMock(): jest.Mock<

export function createMockSetupDependencies() {
return ({
data: {},
data: dataPluginMock.createSetupContract(),
embeddable: embeddablePluginMock.createSetupContract(),
expressions: expressionsPluginMock.createSetupContract(),
} as unknown) as MockedSetupDependencies;
}

export function createMockStartDependencies() {
return ({
data: {
indexPatterns: {
indexPatterns: {},
},
},
data: dataPluginMock.createSetupContract(),
embeddable: embeddablePluginMock.createStartContract(),
expressions: expressionsPluginMock.createStartContract(),
} as unknown) as MockedStartDependencies;
Expand Down

0 comments on commit 14c8c92

Please sign in to comment.