Skip to content

Commit

Permalink
chore(tests): remove redundant JSON.stringify in sdk.test.ts
Browse files Browse the repository at this point in the history
Removing JSON encoding from eventPayload and settings directly.
  • Loading branch information
gentlementlegen committed Nov 8, 2024
1 parent 305bb88 commit 2601858
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ static/dist
coverage
junit.xml
cypress/screenshots
dist
dist
test-dashboard.md
4 changes: 2 additions & 2 deletions tests/sdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 2601858

Please sign in to comment.