Mocha Quick Start for Ubuntu 16.04 Xenial
Hi! The Tutorial shows you How to Install and Getting-Started with Mocha for Javascript Testing on Ubuntu 16.04 Xenial Xerus LTS GNU/Linux.
Mocha is a feature-rich JavaScript Test Framework running on Node.js and in the browser, making asynchronous testing simple and fun.
Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases.

Open a Terminal Shell emulator window
Ctrl+Alt+t on Desktop
(Press “Enter” to Execute Commands)How to Install the Latest Node.js on Ubuntu Linux
Installing Mocha by Npm:
npm install mocha
Or otherwise:
sudo npm install mocha
Getting-Started with Mocha First, Steps