Fix kludge in cluster-frame tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-12-19 08:16:58 -05:00
1 parent d442de5848
commit 408f81121e
1 file changed
+2 -2
@@ -69,7 +69,7 @@ describe("<ClusterFrame />", () => {
describe("given cluster with list nodes and namespaces permissions", () => {
beforeEach(() => {
// TODO: replace with not using private info
(cluster as any).allowedResources.replace(["nodes", "namespaces"]);
(cluster as any).allowedResources.replace(["v1/nodes", "v1/namespaces"]);
});
it("renders", () => {
@@ -110,7 +110,7 @@ describe("<ClusterFrame />", () => {
describe("given cluster without list nodes, but with namespaces permissions", () => {
beforeEach(() => {
(cluster as any).allowedResources.replace(["namespaces"]);
(cluster as any).allowedResources.replace(["v1/namespaces"]);
});
it("renders", () => {