From 09454420c6881f40122e0eb3df0284b1b0a57fbc Mon Sep 17 00:00:00 2001 From: Kurt King Date: Fri, 2 Dec 2022 11:58:27 -0600 Subject: [PATCH] cleanup test Signed-off-by: Kurt King --- .../core-app-api/src/app/AppManager.test.tsx | 31 ++----------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/packages/core-app-api/src/app/AppManager.test.tsx b/packages/core-app-api/src/app/AppManager.test.tsx index e9b18d46e0..f81f382650 100644 --- a/packages/core-app-api/src/app/AppManager.test.tsx +++ b/packages/core-app-api/src/app/AppManager.test.tsx @@ -445,41 +445,14 @@ describe('Integration Test', () => { featureFlags: [{ name: 'show-p2-feature' }], }); - const storageFlags = new LocalStorageFeatureFlags(); - jest.spyOn(storageFlags, 'registerFlag'); - - const apis = [ - noOpAnalyticsApi, - createApiFactory({ - api: featureFlagsApiRef, - deps: { configApi: configApiRef }, - factory() { - return storageFlags; - }, - }), - ]; - const app = new AppManager({ - apis, + apis: [], defaultApis: [], - themes: [ - { - id: 'light', - title: 'Light Theme', - variant: 'light', - Provider: ({ children }) => <>{children}, - }, - ], + themes, icons, plugins: [p1, p2], components, configLoader: async () => [], - bindRoutes: ({ bind }) => { - bind(plugin1.externalRoutes, { - extRouteRef1: plugin1RouteRef, - extRouteRef2: plugin2RouteRef, - }); - }, }); const Provider = app.getProvider();