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

Fix for Date usage in DeepPartial #94

Merged
merged 2 commits into from
Mar 4, 2022
Merged

Fix for Date usage in DeepPartial #94

merged 2 commits into from
Mar 4, 2022

Conversation

tolgap
Copy link
Contributor

@tolgap tolgap commented Mar 4, 2022

Related #93

Allows objects with Date params to be used in factories. Otherwise, you had to mock the entire public interface of Date, or pass it through associations which was annoying.

Copy link
Contributor

@stevehanson stevehanson left a comment

Choose a reason for hiding this comment

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

Thanks for this fix!

I'm realizing that this is an issue not just for Date but also for any custom object with a constructor (eg. I get the issue with DayJs). It might be ideal for DeepPartial to be updated to account for all of those instead of just Date. In the meantime, though, this is a good improvement.

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