deno.land / x / rambda@v9.1.1 / source / pipedAsync.spec.js
1234567891011121314151617181920212223import { add } from './add.js'import { delay } from './delay.js'import { pipedAsync } from './pipedAsync.js'
const fn1 = x => { return new Promise((resolve) => { resolve(x + 2) })}const fn2 = async x => { await delay(1)
return x + 3}
test('happy', async () => { const result = await pipedAsync( 1, fn1, add(2), fn2 )
expect(result).toBe(8)})
Version Info