Asserts that the received Either is a Left.
Either
Left
import { left, right } from 'fp-ts/lib/Either'test('passes when Either is a left', () => { const actual = left(Error()) expect(actual).toBeLeft()})test('passes when Either is a right', () => { const actual = right({ test: 'ok' }) expect(actual).not.toBeLeft()}) Copy
import { left, right } from 'fp-ts/lib/Either'test('passes when Either is a left', () => { const actual = left(Error()) expect(actual).toBeLeft()})test('passes when Either is a right', () => { const actual = right({ test: 'ok' }) expect(actual).not.toBeLeft()})
Asserts that the received
Eitheris aLeft.