Jasmine

Estimated reading time: 1 minute

What is Jasmine ?

Jasmine is a BDD(behavior-driven development) framework for testing of JavaScript code.

Who develop Jasmine ?

Install

npm install jasmine

# or globall install
npm install -g jasmine

jasmine init

Jasmine Demo

describe('A jasmine testing', function() {
  it('Any test', function() {
    console.log('Jasmine is awesome.')
  });
});

Jasmine Demo ES6

describe('A jasmine testing', () => {
  it('Any test', () => {
    console.log('Jasmine is awesome')
  });
});

Official

node.js, testing, unit testing, jasmine