mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Improve expects for multiple field values
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
45f07a15c7
commit
bde34646cf
@ -217,9 +217,11 @@ describe("KubeApi", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("sets fields in the api instance", () => {
|
it("sets fields in the api instance", () => {
|
||||||
expect(ingressApi.apiVersionPreferred).toBe("v1");
|
expect(ingressApi).toEqual(expect.objectContaining({
|
||||||
expect(ingressApi.apiPrefix).toBe("/apis");
|
apiVersionPreferred: "v1",
|
||||||
expect(ingressApi.apiGroup).toBe("networking.k8s.io");
|
apiPrefix: "/apis",
|
||||||
|
apiGroup: "networking.k8s.io",
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
it("registers the api with the changes info", () => {
|
it("registers the api with the changes info", () => {
|
||||||
@ -424,9 +426,11 @@ describe("KubeApi", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("sets fields in the api instance", () => {
|
it("sets fields in the api instance", () => {
|
||||||
expect(ingressApi.apiVersionPreferred).toBe("v1beta1");
|
expect(ingressApi).toEqual(expect.objectContaining({
|
||||||
expect(ingressApi.apiPrefix).toBe("/apis");
|
apiVersionPreferred: "v1beta1",
|
||||||
expect(ingressApi.apiGroup).toBe("extensions");
|
apiPrefix: "/apis",
|
||||||
|
apiGroup: "extensions",
|
||||||
|
}));
|
||||||
});
|
});
|
||||||
|
|
||||||
it("registers the api with the changes info", () => {
|
it("registers the api with the changes info", () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user