(model: ScreensModel, id: string)
| 121 | } |
| 122 | |
| 123 | function nodeOf(model: ScreensModel, id: string): MapNodeLayout { |
| 124 | const node = model.layout.nodes.find((n) => n.id === id); |
| 125 | expect(node, `no node ${id}`).toBeTruthy(); |
| 126 | return node!; |
| 127 | } |
| 128 | |
| 129 | function layerOf(model: ScreensModel, id: string): number { |
| 130 | return nodeOf(model, id).layer; |
no outgoing calls
no test coverage detected