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 Date.now() isn't zero for throttle tests #42

Closed
wants to merge 1 commit into from

Conversation

jcready
Copy link

@jcready jcready commented Nov 1, 2015

Passes Date.now() to sinon.useFakeTimers() so that calling Date.now() inside the tests returns a realistic number and not zero. Fixes #40.

Passes `Date.now()` to `sinon.useFakeTimers()` so that calling `Date.now()` inside the tests returns a realistic number and not zero.
@kolodny
Copy link
Owner

kolodny commented Feb 28, 2017

Hey, thanks for the PR

I'm moving away from using sinon. See https://github.com/kolodny/exercises/tree/fix-time-issues

@jcready
Copy link
Author

jcready commented Mar 1, 2017

Thanks!

@jcready jcready closed this Mar 1, 2017
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