-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Time is not calculated correctly when using a fake clock #128
Comments
Everything can be overridden, though. We'll have to save references to every single global with properties if we're going to be able to totally fix this. Crazy idea, maybe we should? |
@SamVerschueren Could you please create a minimal reproducible example and publish it as a gist? |
Sure, here you go. https://gist.github.com/SamVerschueren/ec24a03117021ed561fb This results in the following output |
Awesome, thank you. |
Guard against clock manipulation by fake timer libraries. Fixes #128.
Awesome! |
I use sinonjs for stubbing and stuff. But also to use a fake timer that I can manipulate.
When doing this, times are not calculated correctly.
Will have a look at it myself, not sure when though.
The text was updated successfully, but these errors were encountered: