(id: string, overrides: Partial<BlockState> = {})
| 39 | } as const |
| 40 | |
| 41 | function createBlock(id: string, overrides: Partial<BlockState> = {}): BlockState { |
| 42 | return { |
| 43 | id, |
| 44 | type: 'function', |
| 45 | name: id, |
| 46 | position: { x: 0, y: 0 }, |
| 47 | subBlocks: {}, |
| 48 | outputs: {}, |
| 49 | enabled: true, |
| 50 | ...overrides, |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | function expectVerticalSeparation(upper: BlockState, lower: BlockState): void { |
| 55 | const upperMetrics = getBlockMetrics(upper) |
no outgoing calls
no test coverage detected