$ grunt test
Find the unit tests in test/ directory.
Open test/manual-testing.html with your browser with a console.
Grunt QUnit https://github.com/gruntjs/grunt-contrib-qunit
Automated testing http://jordankasper.com/blog/2013/04/automated-javascript-tests-using-grunt-phantomjs-and-qunit/
Sample gruntfile http://gruntjs.com/sample-gruntfile
QUnit http://qunitjs.com/