test/runall.sh checks for mocha availablilty:
* Installs mocha globally (with sudo if available), if it's not available in the path.