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