This is based off unittest.js from prototypejs, except this library has no dependency on prototype.js so there is no chance your code-under-test can conflict with prototype.js or that you might accidently use a prototype.js helper for a library that will be deployed independently off prototypejs.
Get the latest here: jsunittest.js
Whereever you were testing with unittest.js, drop in jsunittest.js instead (and update your
<script src="../assets/unittest.js"...> to use
Same API as unittest.js
- original unittest code – prototypejs project
- event library – Dean Edwards
How to submit patches
This code is free to use under the terms of the MIT license.