Jasmine

What is Jasmine?

Jasmine is a Behavior Driven Development testing framework for JavaScript. It does not rely on browsers, DOM, or any JavaScript framework. Thus it’s suited for websites, Node.js projects, or anywhere that JavaScript can run.

FAST

Low overhead, jasmine-core has 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.js tests with the same framework.

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.


describe("A suite is just a function", function() {
  var a;

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

    expect(a).toBe(true);
  });
});


official jasmine.github.io


src stackshare.io/jasmine