Sha256: 0fbd53661f53a8dee9f6906fb9d2a6e825a20711598f0188b4fc829e62abd81a
Contents?: true
Size: 325 Bytes
Versions: 20
Compression:
Stored size: 325 Bytes
Contents
/* global test expect */ const deepAssign = require('../deep_assign') test('deep assign property', () => { const object = { foo: { bar: { } } } const path = 'foo.bar' const value = { x: 1, y: 2 } const expectation = { foo: { bar: { x: 1, y: 2 } } } expect(deepAssign(object, path, value)).toEqual(expectation) })
Version data entries
20 entries across 20 versions & 3 rubygems