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

Function assertGraphError

packages/effect/test/Graph.test.ts:31–38  ·  view source on GitHub ↗
(thunk: () => void, message: string)

Source from the content-addressed store, hash-verified

29const unsupportedEdgeWeights = [NaN, -Infinity] as const
30
31const 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
40type SetNode = { readonly id: string; readonly label: string }
41

Callers 1

Graph.test.tsFile · 0.85

Calls 2

throwsFunction · 0.90
strictEqualFunction · 0.90

Tested by

no test coverage detected