1.0.2 • Published 9 years ago

nested-describe v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

#nested-describe

Helper to create nested describe statements for test suites

Install

npm install nested-describe --save-dev

Usage

testfile.js

var nestedDescribe = require('nested-describe');

nestedDescribe('api.routes.helpers', function() {

  it('should carry out a helper function', function () {

  });

});


nestedDescribe(['api', 'routes', 'helpers'], function() {

  it('should carry out a helper function', function () {

  });

});

will yield

  api
    routes
      helpers
        ✓ should carry out a helper function (1ms)

  1 passing (1ms)