Skip to content
New issue

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

Added diff support for arrays and objects #95

Merged
merged 3 commits into from
Mar 10, 2019

Conversation

mkaradeniz
Copy link
Contributor

When diffing defaultValue, we sometimes get an object or array back. Added custom handling for such cases.

Co-authored-by: Andreas Hubel andreas.hubel@br.de

Copy link
Owner

@kamilkisiela kamilkisiela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing! Could you add few tests and remove .DS_Store? At least one, for each change.

Co-authored-by: Andreas Hubel andreas.hubel@br.de
@@ -382,3 +382,145 @@ test('', () => {
}
});
});

test('array as default value in argument (same)', () => {
Copy link
Contributor Author

@mkaradeniz mkaradeniz Mar 8, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before this pr, these arrays would've been marked as different.

@kamilkisiela
Copy link
Owner

Thank you, I'll release it today :)

@kamilkisiela kamilkisiela merged commit 469d564 into kamilkisiela:master Mar 10, 2019
@mkaradeniz
Copy link
Contributor Author

Hey, do you know when you'll get around releasing this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants