UNPKG

moy-fp

Version:
19 lines (16 loc) 371 B
import __ from '../../src/Function/__' /** * Identity I => I a -> a */ import identity from '../../src/Functor/identity' import Identity from '../../src/Functor/Identity/index' test('identity(not using __)', () => { expect( identity(Identity.of(12)) ).toBe(12) }) test('identity(using __)', () => { expect( identity(__)(Identity.of(12)) ).toBe(12) })