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
797 stars 104 forks source link

Fix #382 by making config fields optional #383

Closed fatso83 closed 3 years ago

fatso83 commented 3 years ago

This fixes #382 by fixing up the JSDoc to reflect the fact that the fields in the Config object are optional. I also added a consumer of our types to verify the fix, as well as multiple other typical use cases from the readme.

codecov[bot] commented 3 years ago

Codecov Report

Merging #383 (20fc8d8) into master (ac7e84c) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #383   +/-   ##
=======================================
  Coverage   93.46%   93.46%           
=======================================
  Files           1        1           
  Lines         551      551           
=======================================
  Hits          515      515           
  Misses         36       36           
Flag Coverage Δ
unit 93.46% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/fake-timers-src.js 93.46% <ø> (ø)

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 ac7e84c...20fc8d8. Read the comment docs.