MCPcopy Create free account
hub / github.com/Effect-TS/effect / assertGraphError

Function assertGraphError

packages/effect/test/Graph.test.ts:23–32  ·  view source on GitHub ↗
(thunk: () => unknown, message: string)

Source from the content-addressed store, hash-verified

21 })
22
23const assertGraphError = (thunk: () => unknown, message: string): void => {
24 let error: unknown
25 try {
26 thunk()
27 } catch (cause) {
28 error = cause
29 }
30 assert.ok(error instanceof Graph.GraphError)
31 assert.strictEqual(error.message, message)
32}
33
34const assertSnapshot = <N, E, T extends Graph.Kind>(
35 graph: Graph.Graph<N, E, T> | Graph.MutableGraph<N, E, T>,

Callers 1

Graph.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected