deno.land / x / rambda@v9.1.1 / source / allFalse.spec.js

allFalse.spec.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { runTests } from 'helpers-fn'
import { allFalse } from './allFalse.js'
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)
rambda

Version Info

Tagged at
2 months ago