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 = expect; ;
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.