Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
LazyEither.Right(4)['fantasy-land/ap'](LazyEither.Right(R.multiply(3))).value(res => {
expect(res).to.deep.equal(S.Right(12))
done()
})
})
LazyEither.Right(3)[FL.chain](lifted).value(res => {
expect(res).to.deep.equal(S.Right(9))
done()
})
})
LazyEither.Right(1)[FL.map](R.add(7)).value(res => {
expect(res).to.deep.equal(S.Right(8))
done()
})
})
: setTimeout(() => resolve(S.Right(val)), ms)
})
LazyEither['fantasy-land/of'] = LazyEither.Right = function(x) {
return new LazyEither(S.T(S.Right(x)))
}