mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00: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:
parent
dcc5495312
commit
fd5f912ccf
@ -22,6 +22,7 @@ import hostedClusterInjectable from "../../cluster-frame-context/hosted-cluster.
|
|||||||
import type { PodStore } from "../workloads-pods/store";
|
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";
|
||||||
|
|
||||||
describe("kube-object-list-layout", () => {
|
describe("kube-object-list-layout", () => {
|
||||||
let di: DiContainer;
|
let di: DiContainer;
|
||||||
@ -71,6 +72,7 @@ describe("kube-object-list-layout", () => {
|
|||||||
renderTableContents={pod => [
|
renderTableContents={pod => [
|
||||||
<div key={pod.getName()}>{pod.getName()}</div>,
|
<div key={pod.getName()}>{pod.getName()}</div>,
|
||||||
]}
|
]}
|
||||||
|
columns={di.injectMany(podListLayoutColumnInjectionToken)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
));
|
));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user