Skip to content

Commit

Permalink
Fix types and mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
criamico committed Feb 17, 2022
1 parent bf7e333 commit 3e41694
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions x-pack/plugins/fleet/.storybook/context/stubs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import type { FleetStartServices } from '../../public/plugin';

type Stubs =
| 'licensing'
| 'storage'
| 'data'
| 'fieldFormats'
Expand All @@ -20,6 +21,7 @@ type Stubs =
type StubbedStartServices = Pick<FleetStartServices, Stubs>;

export const stubbedStartServices: StubbedStartServices = {
licensing: {} as FleetStartServices['licensing'],
storage: {} as FleetStartServices['storage'],
data: {} as FleetStartServices['data'],
fieldFormats: {} as FleetStartServices['fieldFormats'],
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/public/mock/plugin_dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { fieldFormatsServiceMock } from '../../../../../src/plugins/field_format
export const createSetupDepsMock = () => {
const cloud = cloudMock.createSetup();
return {
licensing: licensingMock.createSetup(),
data: dataPluginMock.createSetupContract(),
home: homePluginMock.createSetupContract(),
customIntegrations: customIntegrationsMock.createSetup(),
Expand All @@ -27,6 +26,7 @@ export const createSetupDepsMock = () => {

export const createStartDepsMock = () => {
return {
licensing: licensingMock.createStart(),
data: dataPluginMock.createStartContract(),
fieldFormats: fieldFormatsServiceMock.createStartContract() as any,
navigation: navigationPluginMock.createStartContract(),
Expand Down

0 comments on commit 3e41694

Please sign in to comment.