(thunk: () => void, message: string)
| 29 | const unsupportedEdgeWeights = [NaN, -Infinity] as const |
| 30 | |
| 31 | const assertGraphError = (thunk: () => void, message: string) => { |
| 32 | throws(thunk, (error) => { |
| 33 | strictEqual(error instanceof Graph.GraphError, true) |
| 34 | if (error instanceof Graph.GraphError) { |
| 35 | strictEqual(error.message, message) |
| 36 | } |
| 37 | }) |
| 38 | } |
| 39 | |
| 40 | type SetNode = { readonly id: string; readonly label: string } |
| 41 |
no test coverage detected