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

the-darc / string-mask / 28
100%

Build:
DEFAULT BRANCH: master
Ran 04 Mar 2017 02:22PM UTC
Jobs 3
Files 1
Run time 15s
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
28

Pull #11

travis-ci

web-flow
fix: Option usedefaults re-assign

```js
var options = {
  reverse: true,
  usedefaults: false
}
var formatter = new StringMask('+00 (00) 0000-0000')
```
Old code;

```js
usedefaults: this.options.usedefaults || this.options.reverse
```

OR operator (||) return false on left side and return true on right side.

OR for defaults can be convenient because it is short and easy to write but to booleans parameters it was not good.
Pull Request #11: fix: Option usedefaults re-assign

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

139 of 139 relevant lines covered (100.0%)

462.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28.1 04 Mar 2017 02:22PM UTC 0
100.0
Travis Job 28.1
2 28.2 04 Mar 2017 02:22PM UTC 0
100.0
Travis Job 28.2
3 28.3 04 Mar 2017 02:22PM UTC 0
100.0
Travis Job 28.3
Source Files on build 28
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #28
  • Pull Request #11
  • PR Base - master (#27)
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

© 2026 Coveralls, Inc