Neverending Pile of Messages
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    gen-mochapublic

    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(...){...};

    Keywords

    none

    install

    npm i gen-mocha

    Downloadslast 7 days

    3

    version

    1.0.3

    license

    ISC

    repository

    github.com

    last publish

    collaborators

    • avatar