MCPcopy
hub / github.com/Effect-TS/effect / expectLeft

Function expectLeft

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

eitherMethod · 0.80

Tested by

no test coverage detected