Code coverage report for yeoman-generator/lib/named-base.js

Statements: 100% (4 / 4)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (4 / 4)      Ignored: none     

All files » yeoman-generator/lib/ » named-base.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  1                       1   4 4      
'use strict';
var Base = require('./base');
 
/**
 * The `NamedBase` object is only dealing with one argument: `name`.
 *
 * You can use it whenever you need at least one **required** positional
 * argument for your generator (which is a fairly common use case).
 *
 * @param {String|Array} args [description]
 * @param {Object} options [description]
 */
 
module.exports = Base.extend({
  constructor: function () {
    Base.apply(this, arguments);
    this.argument('name', { type: String, required: true });
  }
});