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
https://github.com/kolodny/exercises/blob/master/throttle/test.js#L8 makes method call Date.now() and (new Date()).getTime() always return 0 It works quite weird, IMO
Date.now()
(new Date()).getTime()
The text was updated successfully, but these errors were encountered:
👍
And it's easy to fix. Simply pass Date.now() into that useFakeTimers() method.
useFakeTimers()
Sorry, something went wrong.
I'm playing around with https://github.com/kolodny/exercises/tree/fix-time-issues that should fix this issue
No branches or pull requests
https://github.com/kolodny/exercises/blob/master/throttle/test.js#L8
makes method call
Date.now()
and(new Date()).getTime()
always return 0It works quite weird, IMO
The text was updated successfully, but these errors were encountered: