From 3496495eca08925c0f7e67fd2869f66ce6157a57 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Thu, 16 Jan 2025 09:49:57 +0000 Subject: [PATCH] test(factories/step): let null override appKey --- packages/backend/test/factories/step.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/backend/test/factories/step.js b/packages/backend/test/factories/step.js index 15573ae2..a52c9d49 100644 --- a/packages/backend/test/factories/step.js +++ b/packages/backend/test/factories/step.js @@ -16,8 +16,11 @@ export const createStep = async (params = {}) => { params?.position || (lastStep?.position ? lastStep.position + 1 : 1); params.status = params?.status || 'completed'; - params.appKey = - params?.appKey || (params.type === 'action' ? 'deepl' : 'webhook'); + + if (params.appKey !== null) { + params.appKey = + params?.appKey || (params.type === 'action' ? 'deepl' : 'webhook'); + } params.parameters = params?.parameters || {};