nested-describe

1.0.2 • Public • Published

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)
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    17
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    17
  • 1.0.1
    1

Package Sidebar

Install

npm i nested-describe

Weekly Downloads

18

Version

1.0.2

License

MIT

Last publish

Collaborators

  • l12s