Mocha test page: running tests in the browser
This page loads chai and Mocha from unpkg and runs the sum test from the Mocha article. The report is drawn below the paragraph, in the div with the id mocha.
The same test without the site layout is a plain HTML page: test.html. It loads sum.js and sum.test.js from this folder, so it opens as a file as well as from the site.
Article author: Andrei Olegovich