Skip to content

Commit

Permalink
update mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jul 12, 2023
1 parent 3f516be commit 7e9c9ee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x-pack/plugins/cloud/public/mocks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ function createSetupMock(): jest.Mocked<CloudSetup> {
isElasticStaffOwned: true,
trialEndDate: new Date('2020-10-01T14:13:12Z'),
registerCloudService: jest.fn(),
isServerlessEnabled: false,
serverless: {
projectId: undefined,
},
};
}

Expand All @@ -42,6 +46,10 @@ const createStartMock = (): jest.Mocked<CloudStart> => ({
billingUrl: 'billing-url',
profileUrl: 'profile-url',
organizationUrl: 'organization-url',
isServerlessEnabled: false,
serverless: {
projectId: undefined,
},
});

export const cloudMock = {
Expand Down
4 changes: 4 additions & 0 deletions x-pack/plugins/cloud/server/mocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ function createSetupMock(): jest.Mocked<CloudSetup> {
url: undefined,
secretToken: undefined,
},
isServerlessEnabled: false,
serverless: {
projectId: undefined,
},
};
}

Expand Down

0 comments on commit 7e9c9ee

Please sign in to comment.