This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as E from 'fp-ts/lib/Either'; | |
import * as O from 'fp-ts/lib/Option'; | |
import { flow, pipe } from 'fp-ts/function'; | |
describe('Either', () => { | |
describe('.fromNullable', () => { | |
const errorMessage = 'input was null or undefined'; | |
const toEither = E.fromNullable(errorMessage); | |
it('should return right with string', async () => { |