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

mochajs / mocha / 6835
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v11.x
DEFAULT BRANCH: main
Ran 19 Jan 2020 12:32PM UTC
Jobs 1
Files 48
Run time 3s
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
6835

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%)

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

2743 of 2954 relevant lines covered (92.86%)

692.51 hits per line

Jobs
ID Job ID Ran Files Coverage
7 6835.7 19 Jan 2020 12:32PM UTC 0
92.86
Travis Job 6835.7
Source Files on build 6835
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6835
  • a24683fd on github
  • Prev Build on master (#6824)
  • Next Build on master (#6840)
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