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

Function assertLeft

packages/effect/test/util.ts:136–142  ·  view source on GitHub ↗
(
  either: Either.Either<R, L>,
  expected: L,
  ..._: Array<never>
)

Source from the content-addressed store, hash-verified

134// ----------------------------
135
136export function assertLeft<R, L>(
137 either: Either.Either<R, L>,
138 expected: L,
139 ..._: Array<never>
140): asserts either is Either.Left<L, never> {
141 deepStrictEqual(either, Either.left(expected))
142}
143
144export function assertRight<R, L>(
145 either: Either.Either<R, L>,

Callers

nothing calls this directly

Calls 1

deepStrictEqualFunction · 0.70

Tested by

no test coverage detected