From 176e1960c8d87793f2f4c963b596266baf245fa6 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Tue, 10 Jan 2023 15:36:06 -0500 Subject: [PATCH] Fix only tests that rely on bad formatting of resources Signed-off-by: Sebastian Malton --- src/renderer/frames/cluster-frame/cluster-frame.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/frames/cluster-frame/cluster-frame.test.tsx b/src/renderer/frames/cluster-frame/cluster-frame.test.tsx index 1a4cc82248..c403ad6b49 100644 --- a/src/renderer/frames/cluster-frame/cluster-frame.test.tsx +++ b/src/renderer/frames/cluster-frame/cluster-frame.test.tsx @@ -69,7 +69,7 @@ describe("", () => { describe("given cluster with list nodes and namespaces permissions", () => { beforeEach(() => { // TODO: replace with not using private info - (cluster as any).allowedResources.replace(["v1/nodes", "v1/namespaces"]); + (cluster as unknown as { readonly allowedResources: Cluster["allowedResources"] }).allowedResources.replace(["nodes", "namespaces"]); }); it("renders", () => { @@ -110,7 +110,7 @@ describe("", () => { describe("given cluster without list nodes, but with namespaces permissions", () => { beforeEach(() => { - (cluster as any).allowedResources.replace(["v1/namespaces"]); + (cluster as unknown as { readonly allowedResources: Cluster["allowedResources"] }).allowedResources.replace(["namespaces"]); }); it("renders", () => {