Skip to content

Commit f46b451

Browse files
committed
test(workflow-code): version the Code tab's base fixture and expect paused on the internal resume result
1 parent fae9ada commit f46b451

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

  • apps/sim/app
    • api/resume/[workflowId]/[executionId]/[contextId]
    • workspace/[workspaceId]/w/[workflowId]/components/panel/components/code

‎apps/sim/app/api/resume/[workflowId]/[executionId]/[contextId]/route.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ describe('POST /api/resume/[workflowId]/[executionId]/[contextId]', () => {
480480
success: false,
481481
status: 'failed',
482482
output: { partial: true },
483+
paused: null,
483484
error: 'Route: Condition evaluation failed',
484485
structuredError: {
485486
message: 'Condition evaluation failed',

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/code/code.test.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ describe('Code tab', () => {
5050
files: { 'workflow.ts': `// read ${sourceReads.length}` },
5151
lock: { version: 1, blocks: {}, variables: {} },
5252
base: {
53+
version: 1,
5354
workflowId: WORKFLOW_ID,
5455
workspaceId: WORKSPACE_ID,
5556
fingerprint: `f${sourceReads.length}`,

0 commit comments

Comments
 (0)