Unit testing for client side JavaScript with DOM.
Do not use ES6(ES2015) or later.
Otherwise testing on CLI will fail.
https://sutara79.github.io/demo-mocha-phantomjs-core/
https://sutara79.github.io/demo-mocha-phantomjs-core/test/index.html
$ npm test
> demo-mocha-phantomjs-core@0.0.1 test
> phantomjs ./node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.html
jquery.set-year.js
✓ int_year should be above 2000
✓ length of int_year should be 4
2 passing (9ms)