moy-fp
Version:
A functional programming library.
19 lines (16 loc) • 361 B
JavaScript
import __ from '../../src/Function/__'
/**
* IO I => I a -> a
*/
import unsafePerformIO from '../../src/Functor/unsafePerformIO'
import IO from '../../src/Functor/IO/index'
test('IO(not using __)', () => {
expect(
unsafePerformIO(IO.of(12))
).toBe(12)
})
test('IO(not using __)', () => {
expect(
unsafePerformIO(__)(IO.of(12))
).toBe(12)
})