0.1.4 • Published 6 years ago

mocha-lazy-bdd v0.1.4

Weekly downloads
42
License
ISC
Repository
github
Last release
6 years ago

Mocha Lazy BDD

This module provides a Lazy BDD interface to mocha. The interfaces is identical to the standard bdd interface, but also provides additional RSpec-style lazy/subject macros.

Example Spec

var expect = require('chai').expect;

describe('mocha-lazy-bdd', function() {
  
  describe('lazy', function() {
    
    lazy('value', function() {
      return 'i am lazy';
    });
    
    it('returns the specified value', function() {
      expect(this.value).to.eq('i am lazy');
    });
    
  });
  
});

See this project's specs for more examples.

Installation and Usage

npm install --save-dev mocha-lazy-bdd
mocha -u mocha-lazy-bdd

Or in a browser environment: install mocha-lazy-bdd via bower and then include the distribution before mocha has been setup.

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

8 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago