(id: string, type = 'function', config: any = {})
| 5 | import { EdgeConstructor } from './edges' |
| 6 | |
| 7 | function createMockBlock(id: string, type = 'function', config: any = {}): SerializedBlock { |
| 8 | return { |
| 9 | id, |
| 10 | metadata: { id: type, name: `Block ${id}` }, |
| 11 | position: { x: 0, y: 0 }, |
| 12 | config: { tool: type, params: config }, |
| 13 | inputs: {}, |
| 14 | outputs: {}, |
| 15 | enabled: true, |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | function createMockNode(id: string): DAGNode { |
| 20 | return { |
no outgoing calls
no test coverage detected