flitbit / diff

Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.
MIT License
2.99k stars 213 forks source link

added tests for issue #142 #145

Open atuttle opened 5 years ago

atuttle commented 5 years ago

It does appear that the change object can be modified when multiple are applied if one is an object.

  81 passing (94ms)
  1 failing

  1) deep-diff
       regression tests for issue #142
         should not modify the change object:

      Error: expected [ 'bar' ] to sort of equal []
      + expected - actual

      -[
      -  "bar"
      -]
      +[]

      at Assertion.assert (node_modules/expect.js/index.js:96:13)
      at Assertion.eql (node_modules/expect.js/index.js:230:10)
      at Context.<anonymous> (test/tests.js:595:45)