mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix only tests that rely on bad formatting of resources
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
76de26695e
commit
176e1960c8
@ -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(["v1/nodes", "v1/namespaces"]);
|
||||
(cluster as unknown as { readonly allowedResources: Cluster["allowedResources"] }).allowedResources.replace(["nodes", "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(["v1/namespaces"]);
|
||||
(cluster as unknown as { readonly allowedResources: Cluster["allowedResources"] }).allowedResources.replace(["namespaces"]);
|
||||
});
|
||||
|
||||
it("renders", () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user