sinonjs / fake-timers

Fake setTimeout and friends (collectively known as "timers"). Useful in your JavaScript tests. Extracted from Sinon.JS
BSD 3-Clause "New" or "Revised" License
802 stars 105 forks source link

issue #304 fix #324

Closed itayperry closed 4 years ago

itayperry commented 4 years ago

Purpose

Allowing clearTimeout to clear setInterval and clearInterval to clear setTimeout, as this is possible by HTML Living Standard. Issue #304
Tests were altered to match the new changes :)

codecov[bot] commented 4 years ago

Codecov Report

Merging #324 into master will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #324   +/-   ##
=======================================
  Coverage   92.75%   92.75%           
=======================================
  Files           1        1           
  Lines         552      552           
=======================================
  Hits          512      512           
  Misses         40       40           
Flag Coverage Δ
#unit 92.75% <100.00%> (ø)
Impacted Files Coverage Δ
src/fake-timers-src.js 92.75% <100.00%> (ø)

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...1f83b99. Read the comment docs.