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,