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

Version Path
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/package/utils/__tests__/deep_assign.js
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/package/utils/__tests__/deep_assign.js
webpacker-jets-3.2.101 package/utils/__tests__/deep_assign.js
webpacker-jets-3.2.100 package/utils/__tests__/deep_assign.js
webpacker-3.5.3 package/utils/__tests__/deep_assign.js
webpacker-3.5.2 package/utils/__tests__/deep_assign.js
webpacker-3.5.1 package/utils/__tests__/deep_assign.js
webpacker-3.5.0 package/utils/__tests__/deep_assign.js
webpacker-3.4.3 package/utils/__tests__/deep_assign.js
webpacker-4.0.0.pre.pre.2 package/utils/__tests__/deep_assign.js
webpacker-4.0.0.pre.pre.1 package/utils/__tests__/deep_assign.js
webpacker-3.4.1 package/utils/__tests__/deep_assign.js
webpacker-3.4.0 package/utils/__tests__/deep_assign.js
webpacker-3.3.1 package/utils/__tests__/deep_assign.js
webpacker-3.3.0 package/utils/__tests__/deep_assign.js
webpacker-3.2.2 package/utils/__tests__/deep_assign.js
webpacker-3.2.1 package/utils/__tests__/deep_assign.js
webpacker-3.2.0 package/utils/__tests__/deep_assign.js
webpacker-3.1.1 package/utils/__tests__/deep_assign.js
webpacker-3.1.0 package/utils/__tests__/deep_assign.js