-
Notifications
You must be signed in to change notification settings - Fork 108
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
Convert timer delay to number if not already #322
Convert timer delay to number if not already #322
Conversation
Hey this looks cool - would you mind adding a test? |
Codecov Report
@@ Coverage Diff @@
## master #322 +/- ##
==========================================
+ Coverage 92.75% 93.11% +0.36%
==========================================
Files 1 1
Lines 552 552
==========================================
+ Hits 512 514 +2
+ Misses 40 38 -2
Continue to review full report at Codecov.
|
(Tests are basically one big file https://github.com/sinonjs/fake-timers/blob/master/test/fake-timers-test.js ) |
@benjamingr test added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me :]
Thanks! |
Purpose
Fix issue #315 by checking if
timer.delay
is a number. If it isn't make it one by parsing it to an integer.