JasUnit is a slim unit testing framework for JavaScript, following the general design principles of xUnit.
For testing your code, JasUnit allows you to:
Create test fixtures with any number of test methods Implement setup() and teardown() methods which are run before and after each test Specify a namespace for a fixture for easy organisation of tests Use the default or custom logger (default appends results to a given element) Use assertions from any scope - this isn't necessary or even really advised, but some people prefer it.