1
0
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:
Alex Andreev 2023-02-10 13:30:59 +03:00
parent da3e08f303
commit fa148b309b
3 changed files with 9 additions and 5 deletions

View File

@ -155,7 +155,7 @@ describe("NamespaceStore", () => {
afterEach(() => {
jest.clearAllMocks();
})
});
it("returns tree for single node", () => {
const tree = namespaceStore.getNamespaceTree(service1);

View File

@ -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 customResourceDefinitionStoreInjectable from "../+custom-resources/definition.store.injectable";
import apiManagerInjectable from "../../../common/k8s-api/api-manager/manager.injectable";
@ -39,8 +43,8 @@ const removeSubnamespaceInjectable = getInjectable({
await store?.remove(anchor);
showSuccessNotification(`Subnamespace ${subnamespaceName} removed`);
}
}
};
},
});
export default removeSubnamespaceInjectable;
export default removeSubnamespaceInjectable;

View File

@ -28,7 +28,7 @@ const namespaceStoreInjectable = getInjectable({
storage: createStorage<string[] | undefined>("selected_namespaces", undefined),
clusterConfiguredAccessibleNamespaces: di.inject(clusterConfiguredAccessibleNamespacesInjectable),
logger: di.inject(loggerInjectable),
removeSubnamespace: di.inject(removeSubnamespaceInjectable)
removeSubnamespace: di.inject(removeSubnamespaceInjectable),
}, api);
},
injectionToken: kubeObjectStoreInjectionToken,