MCPcopy Index your code
hub / github.com/Effect-TS/effect / expectSomePath

Function expectSomePath

packages/effect/test/Graph.test.ts:13–18  ·  view source on GitHub ↗
(result: Option.Option<Graph.PathResult<E>>, expected: Graph.PathResult<E>)

Source from the content-addressed store, hash-verified

11 })
12
13const expectSomePath = <E>(result: Option.Option<Graph.PathResult<E>>, expected: Graph.PathResult<E>) => {
14 expect(Option.isSome(result)).toBe(true)
15 if (Option.isSome(result)) {
16 expect(result.value).toEqual(expected)
17 }
18}
19
20describe("Graph", () => {
21 describe("constructors", () => {

Callers 1

Graph.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected