Behavior-Driven Javascript
Fork me on GitHub
FAST
Low overhead, no external dependencies.
BATTERIES INCLUDED
Comes out of the box with everything you need to test your code.
NODE AND BROWSER
Run your browser tests and node tests with the same framework.
describe("A suite is just a function", function() {
  var a;

  it("and so is a spec", function() {
    a = true;

    expect(a).toBe(true);
  });
});
    
Sample Code
Jasmine is a behavior-driven development framework for testing JavaScript code. It does not depend on any other JavaScript frameworks. It does not require a DOM. And it has a clean, obvious syntax so that you can easily write tests.