Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should allow optic management', () => {
const person: Person = {
name: 'Giulio',
age: age.wrap(43)
}
const ageLens = Lens.fromProp()('age').compose(age.asLens())
assert.deepEqual(ageLens.set(44)(person), {
name: 'Giulio',
age: 44
})
})
})