1
0
mirror of https://github.com/lensapp/lens.git synced 2024-09-17 12:17:08 +03:00

chore: Fix kube-object-list-layout tests to maintain snapshot shape

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-05-01 16:10:58 -04:00
parent dcc5495312
commit fd5f912ccf

View File

@ -22,6 +22,7 @@ import hostedClusterInjectable from "../../cluster-frame-context/hosted-cluster.
import type { PodStore } from "../workloads-pods/store";
import { Cluster } from "../../../common/cluster/cluster";
import isTableColumnHiddenInjectable from "../../../features/user-preferences/common/is-table-column-hidden.injectable";
import { podListLayoutColumnInjectionToken } from "@k8slens/list-layout";
describe("kube-object-list-layout", () => {
let di: DiContainer;
@ -71,6 +72,7 @@ describe("kube-object-list-layout", () => {
renderTableContents={pod => [
<div key={pod.getName()}>{pod.getName()}</div>,
]}
columns={di.injectMany(podListLayoutColumnInjectionToken)}
/>
</div>
));