Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.)
- Loading branch information