Function
assertSnapshot
(
graph: Graph.Graph<N, E, T> | Graph.MutableGraph<N, E, T>,
expected: Graph.Snapshot<N, E, T>
)
Source from the content-addressed store, hash-verified
| 32 | } |
| 33 | |
| 34 | const assertSnapshot = <N, E, T extends Graph.Kind>( |
| 35 | graph: Graph.Graph<N, E, T> | Graph.MutableGraph<N, E, T>, |
| 36 | expected: Graph.Snapshot<N, E, T> |
| 37 | ): void => { |
| 38 | assert.deepStrictEqual(Graph.toSnapshot(graph), expected) |
| 39 | } |
| 40 | |
| 41 | const assertPath = <E>(actual: Option.Option<Graph.PathResult<E>>, expected: Graph.PathResult<E>): void => { |
| 42 | assert.deepStrictEqual(actual, Option.some(expected)) |
Tested by
no test coverage detected