JS unit testing examples used in JavaScript Crash Course
Install node.js
Install local package dependencies (from project directory)
$ npm install
Run the tests! (from project directory)
$ npm test
Run the monitor script
$ node monitor.js
Play around – add/change tests, see them fail, update code to make them pass :)
Code licensed under The MIT License (MIT)
Content licensed under Creative Commons Attribution 3.0
Copyright © 2015 Ken Kunz