chore: Fix deployment scale tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2023-05-02 10:11:52 -07:00
1 parent 97b2d8b1ae
commit 962ecddb3f
1 file changed
+2 -2
@@ -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: {