• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lukechilds / cacheable-request / 416
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v7.0.2
DEFAULT BRANCH: master
Ran 14 Jan 2019 06:45AM UTC
Jobs 1
Files 1
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
416

push

travis-ci

lukechilds
Ensure request error callback runs only once (#66)

The `requestErrorCallback` can be called twice in case the request is aborted before receiving the first byte of the response, as it will emit both `abort` and `error` events. This PR ensures the logic inside `requestErrorCallback` runs only once.

There's no behavior change as calling `resolve()` after the promise is already resolved is a no-op.

This is just a sanity check to futureproof the code in case more logic is added to `requestErrorCallback` later on.

69 of 69 branches covered (100.0%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

120 of 120 relevant lines covered (100.0%)

32.03 hits per line

Jobs
ID Job ID Ran Files Coverage
1 416.1 14 Jan 2019 06:45AM UTC 0
100.0
Travis Job 416.1
Source Files on build 416
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #416
  • 358c3db0 on github
  • Next Build on clean-master (#418)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc