import { describe, expect, it } from 'vitest' import { buildWorkflowLaunchBody } from '../../src/commands/workflow/launch.ts' describe('workflow launch request body', () => { it('submits the workflow so the first operator is created', () => { expect(buildWorkflowLaunchBody('flow1', 'form1', { f_name: '张三' })).toEqual({ id: '', flowId: 'flow1', formData: { f_name: '张三' }, formId: 'form1', status: 1, flowUrgent: 1, }) }) })