Function
createMockWorkflow
(
blocks: SerializedBlock[],
connections: Array<{
source: string
target: string
sourceHandle?: string
targetHandle?: string
}>,
loops: Record<string, SerializedLoop> = {},
parallels: Record<string, any> = {}
)
Source from the content-addressed store, hash-verified
| 39 | } |
| 40 | |
| 41 | function createMockWorkflow( |
| 42 | blocks: SerializedBlock[], |
| 43 | connections: Array<{ |
| 44 | source: string |
| 45 | target: string |
| 46 | sourceHandle?: string |
| 47 | targetHandle?: string |
| 48 | }>, |
| 49 | loops: Record<string, SerializedLoop> = {}, |
| 50 | parallels: Record<string, any> = {} |
| 51 | ): SerializedWorkflow { |
| 52 | return { |
| 53 | version: '1', |
| 54 | blocks, |
| 55 | connections, |
| 56 | loops, |
| 57 | parallels, |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | describe('EdgeConstructor', () => { |
| 62 | let edgeConstructor: EdgeConstructor |
Tested by
no test coverage detected