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

mochajs / mocha / 6790
93%
main: 94%

Build:
Build:
LAST BUILD BRANCH: v11.x
DEFAULT BRANCH: main
Ran 10 Jan 2020 02:44PM UTC
Jobs 1
Files 48
Run time 5s
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
6790

Pull #4133

travis-ci

web-flow
Throw a descriptive error when a non-function is given to a runnable

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.)
Pull Request #4133: Throw a descriptive error when a non-function is given to a runnable

1018 of 1179 branches covered (86.34%)

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

2743 of 2953 relevant lines covered (92.89%)

691.33 hits per line

Jobs
ID Job ID Ran Files Coverage
7 6790.7 10 Jan 2020 02:44PM UTC 0
92.89
Travis Job 6790.7
Source Files on build 6790
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6790
  • Pull Request #4133
  • PR Base - master (#6789)
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