1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

chore: Fix deployment scale tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-05-02 09:35:27 -04:00
parent 97b2d8b1ae
commit 962ecddb3f

View File

@ -32,8 +32,8 @@ describe("DeploymentApi", () => {
});
describe("scale", () => {
it("requests Kubernetes API with PATCH verb and correct amount of replicas", () => {
void deploymentApi.scale({ namespace: "default", name: "deployment-1" }, 5);
it("requests Kubernetes API with PATCH verb and correct amount of replicas", async () => {
await deploymentApi.scale({ namespace: "default", name: "deployment-1" }, 5);
expect(kubeJsonApi.patch).toHaveBeenCalledWith("/apis/apps/v1/namespaces/default/deployments/deployment-1/scale", {
data: {