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

Function expectLeft

packages/effect/test/Effect/do-notation.test.ts:13–15  ·  view source on GitHub ↗
(e: Effect.Effect<R, L>, expected: L)

Source from the content-addressed store, hash-verified

11}
12
13const expectLeft = <R, L>(e: Effect.Effect<R, L>, expected: L) => {
14 Util.deepStrictEqual(Effect.runSync(Effect.either(e)), Either.left(expected))
15}
16
17describe("do notation", () => {
18 it("Do", () => {

Callers 1

Calls 1

eitherMethod · 0.80

Tested by

no test coverage detected