UNPKG

data-cursor

Version:

Javascript Library to traverse nested structures and modify in place without mutating data

13 lines (9 loc) 395 B
import {defaultOperations} from 'Operations'; describe('defaultOperations', () => { it('should work', () => { const arr = []; expect(defaultOperations.getMutableVersionForValue(arr)).to.deep.equals(arr); expect(defaultOperations.getMutableVersionForValue(arr)).not.to.equals(arr); const operators = defaultOperations.getOperatorsForValue(arr); }); });