mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixing tests by registering a table feature
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
54366c3739
commit
6e5fc63953
@ -18,6 +18,9 @@ import { Cluster } from "../../../../common/cluster/cluster";
|
|||||||
import hostedClusterInjectable from "../../../cluster-frame-context/hosted-cluster.injectable";
|
import hostedClusterInjectable from "../../../cluster-frame-context/hosted-cluster.injectable";
|
||||||
import userPreferencesStateInjectable from "../../../../features/user-preferences/common/state.injectable";
|
import userPreferencesStateInjectable from "../../../../features/user-preferences/common/state.injectable";
|
||||||
import type { DiContainer } from "@ogre-tools/injectable";
|
import type { DiContainer } from "@ogre-tools/injectable";
|
||||||
|
import { registerFeature } from "@k8slens/feature-core";
|
||||||
|
import { runInAction } from "mobx";
|
||||||
|
import { tableFeature } from "../../../library";
|
||||||
|
|
||||||
describe("<PodDisruptionBudgets />", () => {
|
describe("<PodDisruptionBudgets />", () => {
|
||||||
let di: DiContainer;
|
let di: DiContainer;
|
||||||
@ -69,6 +72,10 @@ describe("<PodDisruptionBudgets />", () => {
|
|||||||
}),
|
}),
|
||||||
} as any,
|
} as any,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
runInAction(() => {
|
||||||
|
registerFeature(di, tableFeature);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("PDB with minAvailable 0", () => {
|
describe("PDB with minAvailable 0", () => {
|
||||||
|
|||||||
@ -23,6 +23,9 @@ import type { PodStore } from "../workloads-pods/store";
|
|||||||
import { Cluster } from "../../../common/cluster/cluster";
|
import { Cluster } from "../../../common/cluster/cluster";
|
||||||
import isTableColumnHiddenInjectable from "../../../features/user-preferences/common/is-table-column-hidden.injectable";
|
import isTableColumnHiddenInjectable from "../../../features/user-preferences/common/is-table-column-hidden.injectable";
|
||||||
import { podListLayoutColumnInjectionToken } from "@k8slens/list-layout";
|
import { podListLayoutColumnInjectionToken } from "@k8slens/list-layout";
|
||||||
|
import { registerFeature } from "@k8slens/feature-core";
|
||||||
|
import { runInAction } from "mobx";
|
||||||
|
import { tableFeature } from "../../library";
|
||||||
|
|
||||||
describe("kube-object-list-layout", () => {
|
describe("kube-object-list-layout", () => {
|
||||||
let di: DiContainer;
|
let di: DiContainer;
|
||||||
@ -54,6 +57,10 @@ describe("kube-object-list-layout", () => {
|
|||||||
get: () => ({}),
|
get: () => ({}),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
runInAction(() => {
|
||||||
|
registerFeature(di, tableFeature);
|
||||||
|
});
|
||||||
|
|
||||||
podStore = di.inject(podStoreInjectable);
|
podStore = di.inject(podStoreInjectable);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user