We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi!
This line:
falcor-router/test/unit/internal/jsongMerge.spec.js
Line 228 in 3b3a6a8
var expected = _.merge(cache, jsong.jsonGraph); console.log(cache === expected); // true var out = jsongMerge(cache, jsong); expect(cache).to.deep.equals(expected);
If you change the method to this:
var expected = _.merge(_.clone(cache), jsong.jsonGraph); console.log(cache === expected); // false var out = jsongMerge(cache, jsong); expect(cache).to.deep.equals(expected);
Then two of the tests will fail.
The text was updated successfully, but these errors were encountered:
So is this expected jsong here: https://github.com/Netflix/falcor-router/blob/master/test/unit/internal/jsongMerge.spec.js#L122-L135 correct or are you expecting wrong? Is the test wrong or is it the jsonMerge() method that are not working as intended?
Sorry, something went wrong.
No branches or pull requests
Hi!
This line:
falcor-router/test/unit/internal/jsongMerge.spec.js
Line 228 in 3b3a6a8
will always be true because its the same object. Lodash _.merge() changes and returns the object which makes them the same.
If you change the method to this:
Then two of the tests will fail.
The text was updated successfully, but these errors were encountered: