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", () => {
|
||||
expect(ingressApi.apiVersionPreferred).toBe("v1");
|
||||
expect(ingressApi.apiPrefix).toBe("/apis");
|
||||
expect(ingressApi.apiGroup).toBe("networking.k8s.io");
|
||||
expect(ingressApi).toEqual(expect.objectContaining({
|
||||
apiVersionPreferred: "v1",
|
||||
apiPrefix: "/apis",
|
||||
apiGroup: "networking.k8s.io",
|
||||
}));
|
||||
});
|
||||
|
||||
it("registers the api with the changes info", () => {
|
||||
@ -424,9 +426,11 @@ describe("KubeApi", () => {
|
||||
});
|
||||
|
||||
it("sets fields in the api instance", () => {
|
||||
expect(ingressApi.apiVersionPreferred).toBe("v1beta1");
|
||||
expect(ingressApi.apiPrefix).toBe("/apis");
|
||||
expect(ingressApi.apiGroup).toBe("extensions");
|
||||
expect(ingressApi).toEqual(expect.objectContaining({
|
||||
apiVersionPreferred: "v1beta1",
|
||||
apiPrefix: "/apis",
|
||||
apiGroup: "extensions",
|
||||
}));
|
||||
});
|
||||
|
||||
it("registers the api with the changes info", () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user