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

mochajs / mocha / 6835 / 7
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: Expresso
DEFAULT BRANCH: main
Ran 19 Jan 2020 12:32PM UTC
Files 48
Run time 2s
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

19 Jan 2020 12:22PM UTC coverage: 92.857% (+0.007%) from 92.85%
6835.7

push

travis-ci

craigtaub
Throw a descriptive error when a non-function is given to a runnable (#4133)

Given a test such as:

```js
it('foobars', 4);
```

mocha used to throw the following error: `fn.call is not a function`.

While technically true, I have personally spent some minutes of my life chasing
what looked like a bug in the test itself, and not in the call to `it`. A more
descriptive error message helps bring attention to where the problem originates.

(Thanks to [ssube](https://github.com/ssube) for helping with the error wording.)

1011 of 1179 branches covered (85.75%)

2743 of 2954 relevant lines covered (92.86%)

692.51 hits per line

Source Files on job 6835.7
  • Tree
  • List 0
  • Changed 11
  • Source Changed 1
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 6173
  • Travis Job 6835.7
  • a24683fd on github
  • Prev Job for on master (#6824.7)
  • Next Job for on master (#6840.7)
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