mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Linter fixes
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
da3e08f303
commit
fa148b309b
@ -155,7 +155,7 @@ describe("NamespaceStore", () => {
|
|||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
jest.clearAllMocks();
|
jest.clearAllMocks();
|
||||||
})
|
});
|
||||||
|
|
||||||
it("returns tree for single node", () => {
|
it("returns tree for single node", () => {
|
||||||
const tree = namespaceStore.getNamespaceTree(service1);
|
const tree = namespaceStore.getNamespaceTree(service1);
|
||||||
|
|||||||
@ -1,3 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
||||||
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
||||||
|
*/
|
||||||
import { getInjectable } from "@ogre-tools/injectable";
|
import { getInjectable } from "@ogre-tools/injectable";
|
||||||
import customResourceDefinitionStoreInjectable from "../+custom-resources/definition.store.injectable";
|
import customResourceDefinitionStoreInjectable from "../+custom-resources/definition.store.injectable";
|
||||||
import apiManagerInjectable from "../../../common/k8s-api/api-manager/manager.injectable";
|
import apiManagerInjectable from "../../../common/k8s-api/api-manager/manager.injectable";
|
||||||
@ -39,8 +43,8 @@ const removeSubnamespaceInjectable = getInjectable({
|
|||||||
await store?.remove(anchor);
|
await store?.remove(anchor);
|
||||||
|
|
||||||
showSuccessNotification(`Subnamespace ${subnamespaceName} removed`);
|
showSuccessNotification(`Subnamespace ${subnamespaceName} removed`);
|
||||||
}
|
};
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
export default removeSubnamespaceInjectable;
|
export default removeSubnamespaceInjectable;
|
||||||
|
|||||||
@ -28,7 +28,7 @@ const namespaceStoreInjectable = getInjectable({
|
|||||||
storage: createStorage<string[] | undefined>("selected_namespaces", undefined),
|
storage: createStorage<string[] | undefined>("selected_namespaces", undefined),
|
||||||
clusterConfiguredAccessibleNamespaces: di.inject(clusterConfiguredAccessibleNamespacesInjectable),
|
clusterConfiguredAccessibleNamespaces: di.inject(clusterConfiguredAccessibleNamespacesInjectable),
|
||||||
logger: di.inject(loggerInjectable),
|
logger: di.inject(loggerInjectable),
|
||||||
removeSubnamespace: di.inject(removeSubnamespaceInjectable)
|
removeSubnamespace: di.inject(removeSubnamespaceInjectable),
|
||||||
}, api);
|
}, api);
|
||||||
},
|
},
|
||||||
injectionToken: kubeObjectStoreInjectionToken,
|
injectionToken: kubeObjectStoreInjectionToken,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user