import {either} from 'rambda'
describe('R.either', () => { it('with passed type', () => { const fn = either<number>( x => x > 1, x => x % 2 === 0 ) fn const result = fn(2) result }) it('with passed type - curried', () => { const fn = either<number>(x => x > 1)(x => x % 2 === 0) fn const result = fn(2) result }) it('no type passed', () => { const fn = either( x => { x return x > 1 }, x => { x return x % 2 === 0 } ) const result = fn(2) result }) it('no type passed - curried', () => { const fn = either((x: number) => { x return x > 1 })((x: number) => { x return x % 2 === 0 }) const result = fn(2) result })})