Nodeunit, see for example the test script for Ray: https://github.com/schteppe/cannon.js/blob/master/test/Ray.js