Skip to main content
Module

x/rambda/source/allFalse.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {runTests} from 'helpers-fn'
import {allFalse} from './allFalse'
const happy = {ok: [() => false, () => [], () => {}, null, false, []]}const withArray = {fail: [...happy.ok, [1]]}const withObject = {fail: [...happy.ok, {a: 1}]}const withFunction = {fail: [...happy.ok, () => ({a: 1})]}const withBoolean = {fail: [...happy.ok, true]}
const testData = { label: 'R.allFalse', data: [happy, withArray, withObject, withFunction, withBoolean], fn: input => allFalse(...input),}runTests(testData)