From ba6b0fba6d9e4558134687ab7489476fe70f6da0 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 13 Dec 2024 16:00:40 +0000 Subject: [PATCH] Correcting issue with test case. --- packages/server/src/automations/tests/scenarios/webhook.spec.ts | 1 + packages/server/src/tests/utilities/api/webhook.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/automations/tests/scenarios/webhook.spec.ts b/packages/server/src/automations/tests/scenarios/webhook.spec.ts index 427f87ceb2..5f2f01ec1d 100644 --- a/packages/server/src/automations/tests/scenarios/webhook.spec.ts +++ b/packages/server/src/automations/tests/scenarios/webhook.spec.ts @@ -54,5 +54,6 @@ describe("Branching automations", () => { parameter: "testing", } ) + expect(res).toBeDefined() }) }) diff --git a/packages/server/src/tests/utilities/api/webhook.ts b/packages/server/src/tests/utilities/api/webhook.ts index b4a1570a65..be1ff6aa4c 100644 --- a/packages/server/src/tests/utilities/api/webhook.ts +++ b/packages/server/src/tests/utilities/api/webhook.ts @@ -8,7 +8,7 @@ import { export class WebhookAPI extends TestAPI { save = async (webhook: Webhook, expectations?: Expectations) => { - const resp = await this._post("/api/webhooks", { + const resp = await this._put("/api/webhooks", { body: webhook, expectations: { status: 200,