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

vgno / redux-fetcher
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v2.1.0
DEFAULT BRANCH: master
Repo Added 09 Dec 2015 11:46AM UTC
Files 3
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

LAST BUILD ON BRANCH issue-14
branch: issue-14
CHANGE BRANCH
x
Reset
  • issue-14
  • bug/mixedcase
  • bug/npmignore
  • bug/tokens
  • enhancement/readme
  • enhancement/use-stable-api-middleware
  • feature/ci
  • master
  • release/stable
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v2.0.0
  • v2.1.0

pending completion
37

push

travis-ci

andreasrs
Extend options object with defaults

Using defaults as a function parameter causes the whole options object to
be overriden, even when the intent is to change just one parameter.

Using the spread operator allows a overriding only individual options.

An alternative could be using destructing with defaults as the function argument
like this: `(id, url, { force = false, method = 'GET' } = {})`, but that
requires to also set default values for the `extendAction()` function
(`headers` and `credentials`).

Resolves #14

58 of 58 relevant lines covered (100.0%)

18.21 hits per line

Relevant lines Covered
Build:
Build:
58 RELEVANT LINES 58 COVERED LINES
18.21 HITS PER LINE
Source Files on issue-14
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
37 issue-14 Extend options object with defaults Using defaults as a function parameter causes the whole options object to be overriden, even when the intent is to change just one parameter. Using the spread operator allows a overriding only individual optio... push 12 Aug 2016 03:50PM UTC andreasrs travis-ci pending completion  
35 issue-14 Extend options object with defaults Using defaults as a function parameter causes the whole options object to be overriden, even when the intent is to change just one parameter. Using the spread operator allows a overriding only individual optio... push 11 Aug 2016 08:48AM UTC androa travis-ci pending completion  
31 issue-14 Extend options object with defaults Using defaultds as a function parameter causes the whole options object to be overriden, even when the intent is to change just one parameter. Using `Object.assign()` allows a overriding only individual option... push 11 Aug 2016 08:41AM UTC androa travis-ci pending completion  
See All Builds (45)
  • Repo on GitHub
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