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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
import { assoc } from './assoc.js'import { lens } from './lens.js'import { prop } from './prop.js'import { view } from './view.js'
const testObject = { foo : 'Led Zeppelin' }const assocLens = lens(prop('foo'), assoc('foo'))
test('happy', () => { expect(view(assocLens, testObject)).toBe('Led Zeppelin')})
rambda

Version Info

Tagged at
2 months ago