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

Remove config.target #318

Closed fatso83 closed 4 years ago

fatso83 commented 4 years ago

Removes config.target, simplifying the API by only making it possible to choose alternate targets using withGlobal(target).

See discussion in #276 and sinonjs/sinon#2156

codecov[bot] commented 4 years ago

Codecov Report

Merging #318 into master will increase coverage by 0.01%. The diff coverage is 93.75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #318      +/-   ##
==========================================
+ Coverage   92.74%   92.75%   +0.01%     
==========================================
  Files           1        1              
  Lines         551      552       +1     
==========================================
+ Hits          511      512       +1     
  Misses         40       40              
Flag Coverage Δ
#unit 92.75% <93.75%> (+0.01%) :arrow_up:
Impacted Files Coverage Δ
src/fake-timers-src.js 92.75% <93.75%> (+0.01%) :arrow_up:

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 480f68f...13315c2. Read the comment docs.