Skip to content

Commit

Permalink
Address CR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sabarasaba committed Mar 30, 2022
1 parent 8312e01 commit d13d3b5
Showing 1 changed file with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,17 @@ import { createRemoteClustersStore } from '../../../public/application/store';
import { AppRouter, registerRouter } from '../../../public/application/services';
import { createRemoteClustersActions, WithAppDependencies } from '../helpers';

const testBedConfig = ({ isCloudEnabled }: { isCloudEnabled: boolean }) => {
return {
store: createRemoteClustersStore,
memoryRouter: {
onRouter: (router: AppRouter) => registerRouter(router),
},
defaultProps: { isCloudEnabled },
};
const testBedConfig = {
store: createRemoteClustersStore,
memoryRouter: {
onRouter: (router: AppRouter) => registerRouter(router),
},
};

export const setup = async (httpSetup: HttpSetup, overrides?: Record<string, unknown>) => {
const initTestBed = registerTestBed(
WithAppDependencies(RemoteClusterAdd, httpSetup, overrides),
testBedConfig({ isCloudEnabled: !!overrides?.isCloudEnabled })
testBedConfig
);
const testBed = await initTestBed();

Expand Down

0 comments on commit d13d3b5

Please sign in to comment.