gen-mocha

1.0.3 • Public • Published

gen-mocha

Generate node js unit tests

Patterns

Module Id Assignment

These will need to be classified by a function identifier

Class

module.exports = MyClass;
module.exports.MyClass = MyClass;

Static function

module.exports = myFunction;
module.exports.myFunction = myFunction;
module.exports = function(...){...};
module.exports = (...) => {...};

Object Assignment

module.exports = {
  myFunction: function(...){...}
};

Function Classifiers

Class Constructor

function MyClass(){

}

Static Function

function myFunction(){

}

SubFunction Classifier

Class Prototype

MyClass.prototype.subFunc = function(...){...};

Class Static

MyClass.subFunc = function(...){...};

Readme

Keywords

none

Package Sidebar

Install

npm i gen-mocha

Weekly Downloads

1

Version

1.0.3

License

ISC

Last publish

Collaborators

  • stierma1