Files
ssw-mvp/dacli/tests/unit/workflow_launch_body.test.ts
T
admin 4d096dd97e chore(dacli): 提交 dacli CLI 工具源码并过滤敏感/噪声文件
- dacli/ 整目录被 .gitignore 忽略,本次 force-add 其业务源码(766 文件)
- 排除 node_modules/.env(含 PGPASSWORD 等敏感信息)/.DS_Store/__pycache__/*.pyc
- 新增 dacli/.gitignore 长期管理内部噪声,新增文件仍需 git add -f
- 根 .gitignore 补充 .cache/ 与诊断脚本忽略,并加 dacli 段说明
2026-08-06 19:02:39 +08:00

16 lines
483 B
TypeScript

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,
})
})
})