mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
chore: Fixup unit tests calling 'allowKubeResource' at the wrong time
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
40af0d31c5
commit
6167ad2c25
3 files changed
+12
-12
No files matched your search
@@ -33,11 +33,14 @@ describe("namespaces route when viewed with some subNamespaces", () => {
|
||||
requestDeleteSubNamespaceAnchorMock = asyncFn();
|
||||
|
||||
builder.beforeWindowStart(({ windowDi }) => {
|
||||
builder.allowKubeResource({ group: "", apiName: "namespaces" });
|
||||
windowDi.override(requestDeleteNormalNamespaceInjectable, () => requestDeleteNormalNamespaceMock);
|
||||
windowDi.override(requestDeleteSubNamespaceAnchorInjectable, () => requestDeleteSubNamespaceAnchorMock);
|
||||
});
|
||||
|
||||
builder.afterWindowStart(() => {
|
||||
builder.allowKubeResource({ group: "", apiName: "namespaces" });
|
||||
});
|
||||
|
||||
result = await builder.render();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user