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
@@ -687,8 +687,10 @@ export const getApplicationBuilder = () => {
|
||||
const windowDi = builder.applicationWindow.only.di;
|
||||
const cluster = windowDi.inject(hostedClusterInjectable);
|
||||
|
||||
assert(cluster, "For some reason the hosted cluster is not yet available, are you running in an 'afterWindowStart' callback?");
|
||||
|
||||
runInAction(() => {
|
||||
cluster?.resourcesToShow.add(formatKubeApiResource(resource));
|
||||
cluster.resourcesToShow.add(formatKubeApiResource(resource));
|
||||
});
|
||||
|
||||
return builder;
|
||||
|
||||
Reference in new issue
Block a user