UNPKG

moy-fp

Version:
24 lines (20 loc) 464 B
import __ from '../../src/Function/__' /** * (a -> Boolean) -> [a] -> Boolean */ import none from '../../src/List/none' test('none(not using __), return true', () => { expect( none(x => x > 4)([1, 2, 3, 4]) ).toBeTruthy() }) test('none(not using __), return false', () => { expect( none(x => x > 3)([1, 2, 3, 4]) ).toBeFalsy() }) test('none(using __), return true', () => { expect( none(__, [1, 2, 3, 4])(x => x > 4) ).toBeTruthy() })