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

mochajs / mocha / 3866
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v11.x
DEFAULT BRANCH: main
Ran 13 Dec 2017 01:39AM UTC
Jobs 1
Files 34
Run time 4s
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
3866

push

travis-ci

boneskull
Move re variable definition in lookupFiles Utility (#3082)

* move regexp definition in lookupFiles.

I am using mocha programmatically, along with its utility `lookupFiles`.

A regular expression must be evaluated to lookup files although it is only needed in one case where a glob is not provided. Shifting the `re` variable definition down to where it is needed will avoid this issue, also eliminate the requirement of always sending an array to the extensions parameter (although it might not be needed)

* add unit tests

remove commented file

775 of 937 branches covered (82.71%)

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

1982 of 2203 relevant lines covered (89.97%)

402.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3866.1 (TARGET=test-node COVERAGE=true) 13 Dec 2017 01:39AM UTC 0
89.97
Travis Job 3866.1
Source Files on build 3866
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3866
  • 6fc2d9e9 on github
  • Prev Build on master (#3861)
  • Next Build on master (#3874)
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