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

always.spec.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { always } from './always.js'import { applySpec } from './applySpec.js'
test('happy', () => { const fn = always(7)
expect(fn()).toBe(7) expect(fn()).toBe(7)})
test('compatibility with applySpec', () => { const spec = applySpec({ x : always('foo') }) expect(spec({})).toEqual({ x : 'foo' })})
rambda

Version Info

Tagged at
2 months ago