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

Ensure checks based Object.keys length pass for fake Dates #513

Merged

Conversation

alexanderweiss
Copy link
Contributor

Purpose (TL;DR) - mandatory

Fixes sinon.match / samsam equality checks failing between Date and fake dates.

Background

Ran into another small issue with the constructor: samsam's deepEqual checks the number of properties on the object, and the constructor should not be enumerable so there should be 0 keys, but fake Dates had one now.

Copy link
Contributor

@fatso83 fatso83 left a comment

Choose a reason for hiding this comment

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

🙇 Thank you!

@fatso83 fatso83 merged commit 754d785 into sinonjs:main Oct 28, 2024
11 checks passed
@alexanderweiss
Copy link
Contributor Author

Thanks! Our tests were all green now (When adding an override for the latest fake-timers version)

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