(id: string, zone: { x: number; width: number })
| 260 | const model = buildStepsModel(payload([anchor, a1, a2, b1, a3], links)); |
| 261 | const at = (id: string) => model.layout.nodes.find((n) => n.id === id)!; |
| 262 | const between = (id: string, zone: { x: number; width: number }) => { |
| 263 | const n = at(id); |
| 264 | return n.x >= zone.x && n.x + n.width <= zone.x + zone.width; |
| 265 | }; |
| 266 | const edge = (from: string, to: string) => model.layout.edges.find((e) => e.source === from && e.target === to)!; |
| 267 | |
| 268 | it('names the regions in the order the walk met them, each holding its own boxes', () => { |
no test coverage detected