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

Convert timer delay to number if not already #322

Merged

Conversation

arielweinberger
Copy link
Contributor

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.

@benjamingr
Copy link
Member

Hey this looks cool - would you mind adding a test?

@codecov
Copy link

codecov bot commented May 10, 2020

Codecov Report

Merging #322 into master will increase coverage by 0.36%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            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     
Flag Coverage Δ
#unit 93.11% <100.00%> (+0.36%) ⬆️
Impacted Files Coverage Δ
src/fake-timers-src.js 93.11% <100.00%> (+0.36%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f8322e...a0ac099. Read the comment docs.

@benjamingr
Copy link
Member

@arielweinberger
Copy link
Contributor Author

@benjamingr test added

Copy link
Member

@benjamingr benjamingr left a 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 :]

@benjamingr benjamingr merged commit 2ebd23c into sinonjs:master May 16, 2020
@benjamingr
Copy link
Member

Thanks!

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