From 2601858bd4be843c40e3f65749d844ea15f7a153 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Fri, 8 Nov 2024 18:46:10 +0900 Subject: [PATCH] chore(tests): remove redundant JSON.stringify in sdk.test.ts Removing JSON encoding from eventPayload and settings directly. --- .gitignore | 3 ++- tests/sdk.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index bfac1ec..8d49c0d 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,5 @@ static/dist coverage junit.xml cypress/screenshots -dist \ No newline at end of file +dist +test-dashboard.md \ No newline at end of file diff --git a/tests/sdk.test.ts b/tests/sdk.test.ts index f9f9dfa..5aaea62 100644 --- a/tests/sdk.test.ts +++ b/tests/sdk.test.ts @@ -54,8 +54,8 @@ async function getWorkerInputs(stateId: string, eventName: string, eventPayload: const inputs = { stateId, eventName, - eventPayload: JSON.stringify(eventPayload), - settings: JSON.stringify(settings), + eventPayload, + settings, authToken, ref, };