* Verifies that the either is a `Left` with the expected value.
(either: Either.Either<R, L>, left: L)
| 297 | * Verifies that the either is a `Left` with the expected value. |
| 298 | */ |
| 299 | left<R, const L>(either: Either.Either<R, L>, left: L) { |
| 300 | if (Either.isLeft(either)) { |
| 301 | deepStrictEqual(either.left, left) |
| 302 | } else { |
| 303 | // eslint-disable-next-line no-console |
| 304 | console.log(either.right) |
| 305 | fail(`expected a Left, got a Right: ${either.right}`) |
| 306 | } |
| 307 | }, |
| 308 | |
| 309 | /** |
| 310 | * Verifies that the either is a left with the expected value. |
nothing calls this directly
no test coverage detected