nutgaard / yet-another-fetch-mock

MIT License
4 stars 2 forks source link

feat(middleware): Added delay and failureRate middleware, and combine… #3

Closed nutgaard closed 6 years ago

nutgaard commented 6 years ago

… of these

In order to facilitate easier combination of middleware we've added a combine method for middlewares. delay and failureRate middlewares are added in as well, since these are most likely something most people will use.

2

codecov-io commented 6 years ago

Codecov Report

Merging #3 into master will increase coverage by 0.15%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #3      +/-   ##
=========================================
+ Coverage   98.64%   98.8%   +0.15%     
=========================================
  Files           4       5       +1     
  Lines         148     167      +19     
  Branches       21      23       +2     
=========================================
+ Hits          146     165      +19     
  Misses          2       2
Impacted Files Coverage Δ
src/middleware-utils.ts 100% <100%> (ø)

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 83a3f16...51d0e80. Read the comment docs.